I have the following link_to:

<%= link_to("Remove", {:action => "remove_role_from_account", :role_id
=> role, :account_id => @account}) %>

It generates:
http://myserver.com/roles/remove_role_from_account?account_id=1&role_id=5

But this doesn't match the right default route:

{:action=>"wsdl"} /:controller/:action/:id.:format
              /:controller/:action/:id

So it's not hitting my action "remove_role_from_account" and instead is
try to go to action "show" with the id as "remove_role_from_account"

what am i doing wrong here?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to