Rails 3: Make "link_to :remote => true" replace HTML elements with jQuery In Rails 2, you could use link_to_remote ... :update => 'id' to automatically replace the content of $('#id'). To do the same in Rails 3, include usual rails-ujs JavaScript Show archive.org snapshot , and put this into your application.js: Copy$(function() { $('[data-remote][data-replace]') .data('type', 'html') .live('ajax:
{{#tags}}- {{label}}
{{/tags}}