Hi,
I'm trying to use link_to to access the Update action + add some extra
parameters. I'm using the default rest routes.
I can't get it working.
When I use: <%= link_to ' Accept', invitation_path, :method => :put, :id
=> '1', :command => 'accept' %>
I can get into the Update action but the parameters are lost. The :id is
the of the logged in user instead of 1, and the :command parameter is
gone.
Processing InvitationsController#update (for 127.0.0.1 at 2008-10-18
23:28:34) [PUT]
Session ID: ....65754...
Parameters: {"authenticity_token"=>"e88240...96", "_method"=>"put",
"action"=>"update", "id"=>"5", "controller"=>"invitations
"}
Any hints how to get this done?
Thanks
--
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
-~----------~----~----~----~------~----~------~--~---