# In\_place\_editing sending id as action name

**URL:** <https://www.ruby-forum.com/t/in-place-editing-sending-id-as-action-name/132409>\
**Category:** Rails\
**Created:** [March 19, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/in-place-editing-sending-id-as-action-name/132409 "2008-03-19T20:43:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [March 19, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/in-place-editing-sending-id-as-action-name/132409/1 "2008-03-19T20:43:34Z")

</div>

I am trying to get in\_place\_editing plugin working but it shows  
following in logs…

Parameters:  
{“authenticity\_token”=\>“447999a7bc028bf2627501257727d22150beabaa”,  
“action”=\>“1”, “value”=\>“longhorn”, “controller”=\>“projects”,  
“editorId”=\>“edit\_project\_1”}

it says action =\> 1

although I have clearly defined that …

:url =\> url\_for(:controller =\> “projects”, :action =\> “update”, :id =\>  
project.id)

what could be wrong?

---

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [March 25, 2008, 1:44pm UTC](https://www.ruby-forum.com/t/in-place-editing-sending-id-as-action-name/132409/2 "2008-03-25T13:44:51Z")

</div>

That can happen when Projects is defined as a resource in your route  
file and whenever you do that then your app always expects the put  
http method with your update action in your url. So try adding :method  
=\> :put after your url or simply like so

:url =\> project\_path(project), :method =\> :put

Hope this should work.

On Mar 19, 7:43 pm, “Vapor …” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
