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.

resources :collection and :member should allow multiple http methods per action

#1316

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

Reported by Seth Ladd · November 2nd, 2008 @ 10:06 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. DHH
    DHH
    • 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.

    November 14th, 2008 @ 11:05 AM

  2. Seth Ladd
    Seth Ladd

    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.

    November 14th, 2008 @ 06:51 PM

  3. DHH
    DHH

    I think it's a reasonable addition. I even seem to remember wanting this for something in the past. Do have at it.

    November 14th, 2008 @ 10:22 PM

  4. Seth Ladd
    Seth Ladd

    Roger that, thanks again!

    November 14th, 2008 @ 10:47 PM

  5. Matt Jones
    Matt Jones

    For what it's worth, this has already been done in the 2.2RC:

    Github url: http://github.com/rails/rails/co...

    November 15th, 2008 @ 07:06 AM

  6. Seth Ladd
    Seth Ladd

    hah It's worth a lot, seeing as that's what I wanted :)

    November 15th, 2008 @ 06:06 PM