Okay, so I have a many-to-many relationship between Users and Groups. When looking at the Group, I have the user rows being rendered via a partial. I want to have a "Remove" link next to each user name in turn, which calls the "remove user from group" action, but I'm unsure how exactly to specify this with link_to.
This is what I have: <tr> <td><%= @user.login %> <small>(<%= link_to "Remove", :action => "remove_user_from_group", :id => @group.id, :locals => {:login => @user.login} %>)</small></td> </tr> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---