RailsCasts Pro episodes are now free!

Learn more or hide this

Todd Holdman's Profile

GitHub User: cernalpanic

Comments by Todd Holdman

Avatar

+1. Just hang in there. I was getting nervous because the server had actually been running (green light in the UI) on AWS for awhile. It did eventually kick in.

Avatar

Could be my setup but Mercury is running 'onload' twice. i had to do one of these:

ruby
       var link = $('#mercury_iframe').contents().find('#edit_link');
         if (typeof link.data('save-url') != 'undefined') {
             console.log('only set saveUrl if it exists');
             Mercury.saveUrl = link.data('save-url');
         }
        console.log(Mercury.saveUrl); //<-- should be valid
        link.hide();