# Link\_to + PUT + restful routes problem

**URL:** <https://www.ruby-forum.com/t/link-to-put-restful-routes-problem/151254>\
**Category:** Rails\
**Created:** [October 18, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/link-to-put-restful-routes-problem/151254 "2008-10-18T22:28:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [October 18, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/link-to-put-restful-routes-problem/151254/1 "2008-10-18T22:28:04Z")

</div>

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
