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.

Routing should raise error if invalid http method used

#243

Using the following routes.rb:

ActionController::Routing::Routes.draw do |map|
  map.resources :bugs, :member => {:this => :should_raise_an_error}
end

What should happen

An error should be raised as quickly as possible, indicating that :should_raise_an_error is not a valid HTTP method. Only :get, :post, :put and :delete should be acceptable (not :head, as it is treated as a :get)

What does happen

No error is raised

Reported by Tom Ward · May 23rd, 2008 @ 05:04 PM

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

Activity

  1. josh
    josh
    • State changed from new to open
    • Tag set to actionpack, edge, routing

    Definitely. Got patch?

    July 17th, 2008 @ 12:31 AM

  2. Tom Ward
  3. Tom Ward
    Tom Ward
    • Tag changed from actionpack, edge, routing to actionpack, edge, patch, routing

    Added patch to raise ArgumentError if invalid http method used

    July 18th, 2008 @ 02:36 PM

  4. josh
    josh
    • State changed from open to resolved

    July 19th, 2008 @ 02:19 AM