This project is archived and is in readonly mode.

#6758 new
vilanye

POST link_to

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

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

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages