This project is archived and is in readonly mode.

#243 ✓resolved
Tom Ward

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}

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

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=""></a>

People watching this ticket