Since you upgraded to Rails 3, you are doing a great job of dropping the use of RJS. Use AJAX method callbacks to replace. For instance:
Ajax call:
$.ajax( url: "/things/one", type: "GET", complete: function(response, status) { $('#content').html(response); } );
Then in the controller:
class ThingsController def one respond_to do |format| format.js { render :partial => "day" } end end end
source share