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)