RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: ncapule
Nice Tutorial! I just want to post here a fix I discovered. Sorry if this would be a repost:
In your tutorial: $('#products').html('<%= escape_javascript(render("products")) %>');
But in Rails 3.1, you have to explicitly define it as a partial: $('#products').html('<%= escape_javascript(render :partial => "products" %>');
I hope this helps anyone who had the same issue. :)
Nice Tutorial! I just want to post here a fix I discovered. Sorry if this would be a repost:
In your tutorial:
$('#products').html('<%= escape_javascript(render("products")) %>');
But in Rails 3.1, you have to explicitly define it as a partial:
$('#products').html('<%= escape_javascript(render :partial => "products" %>');
I hope this helps anyone who had the same issue. :)