RailsCasts Pro episodes are now free!

Learn more or hide this

ncapule's Profile

GitHub User: ncapule

Comments by


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. :)