This project is archived and is in readonly mode.
resources :collection and :member should allow multiple http methods per action
Reported by Seth Ladd | November 2nd, 2008 @ 10:06 PM | in 2.x
Hello,
When setting up a route that uses :member or :collection, it should be possible to specify multiple allowed HTTP methods per action.
For instance, this should be possible:
map.resources :accounts, :member => {:plan => [:get, :post]}
Notice the :get and :post is allowed for :plan.
Thanks, Seth
Comments and changes to this ticket
-
DHH November 14th, 2008 @ 11:05 AM
- State changed from new to invalid
Seth, this sounds like a feature request. We don't really use LH to track feature requests as there are so many. If you start working on this and turn out a patch then feel free to open another ticket.
-
Seth Ladd November 14th, 2008 @ 06:51 PM
David,
Thanks for the feedback. I've worked enough open source projects to know that it doesn't matter if I submit a patch if the committers don't see the benefit and won't apply it anyway. I'll happily add the patch if you see value in it. Thanks again for all your work on Rails.
-
DHH November 14th, 2008 @ 10:22 PM
I think it's a reasonable addition. I even seem to remember wanting this for something in the past. Do have at it.
-
Matt Jones November 15th, 2008 @ 07:06 AM
For what it's worth, this has already been done in the 2.2RC:
Github url: http://github.com/rails/rails/co...
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>