A quick and easy answer I\'m sure. I\'m upgrading a Rails project from version 2 to version 3 and replacing a load of the link_to_remote with link_to\'s as per the Rails 3
The :update
option isn't supported by the new link_to :remote => true
.
You will either have to
:remote => true
render :update { |page| p.replace_html ... }
The :update
parameter is gone. You need to handle the DOM update yourself using Unobtrusive JavaScript. Also, make sure you actually included the csrf_meta_tag
helper in your layout.
I wrote an article about using unobtrusive JavaScript in Rails 3.