Here is what I want to do:
<%= link_to "Approve", brand_user_brand_roles_path(@brand),
:with => "forms[0]['user_brand_role_role_id'].value", :method => "POST", :remote => true %>
I know that this doesn't work. I want to call a controller method remotely, including as a parameter a value that is selected in a field other than what is clicked.
How can I use Javascript to refer to a different field in a link_to? Or is there another strategy that is better?