This project is archived and is in readonly mode.
Routing should raise error if invalid http method used
Reported by Tom Ward | May 23rd, 2008 @ 05:04 PM
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
Comments and changes to this ticket
-
josh July 17th, 2008 @ 12:31 AM
- State changed from new to open
- Tag set to actionpack, edge, routing
Definitely. Got patch?
-
Tom Ward July 18th, 2008 @ 02:36 PM
- Tag changed from actionpack, edge, routing to actionpack, edge, patch, routing
Added patch to raise ArgumentError if invalid http method used
-
josh July 19th, 2008 @ 02:19 AM
- State changed from open to resolved
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>