Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

POST link_to

#6758

Using link_to with a POST seems to be broken in 3.0.x(tested with 3.0, 3.0.5 through 7).

Example

Route

resources :avatars do
post :add_from_collection, :on=>:member end

<%= link_to 'image', add_from_collection_avatar_path(avatar),:method=>:post %>

gives "No route matches "/avatars/2/add_from_collection" " error

Reported by vilanye · April 29th, 2011 @ 08:56 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.