How do I use link_to_remote to pass then render a partial in rails?

Posted by Angela on Stack Overflow See other posts from Stack Overflow or by Angela
Published on 2010-05-28T18:11:46Z Indexed on 2010/05/28 18:22 UTC
Read the original article Hit count: 154

I want to create several link_to_remote links that are campaign names:

<% @campaigns.each do |campaign| %>
<!--link_to_remote(name, options = {}, html_options = nil)-->
   <%= link_to_remote(campaign, :update => "campaign_todo",
                                :url => %>    
<% end %>

I want the output to update on the page to render a partial, which runs a loop through the values associated with the campaign.

The API docs says this will render a partial, but I'm not clear where the name of the :partial template is passed in, either here or in the controller

Thanks.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about link-to-remote