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 .."
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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?
> --
> Posted viahttp://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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---