This project is archived and is in readonly mode.
Routing should support HTTP OPTIONS
Reported by Stefan Tilkov | January 10th, 2009 @ 07:01 PM
I can see no reason why a route like this should not be supported, as OPTIONS is a meaningful and useful verb:
map.connect '/orders/', :controller => "orders", :action => 'options', :conditions => { :method => :options }
but it raises an exception:
validate_route_conditions': Invalid HTTP method specified
in route conditions
An easy fix seems to be to change ActionController::Routing::HTTP_METHODS to include :options (as in fact the almost identical ActionController::Request::HTTP_METHODS does).
Comments and changes to this ticket
-
CancelProfileIsBroken March 8th, 2009 @ 12:32 PM
- Assigned user set to josh
- Milestone cleared.
Here's the patch + test. Any reason not to support this?
-
Repository March 8th, 2009 @ 12:38 PM
- State changed from new to resolved
- Tag set to 2.3, patch, routing
(from [5e0f6214d2421a4931c85ee6a239158c69e57b65]) Support OPTIONS verb in route conditions [#1727 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
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>
People watching this ticket
Attachments
Referenced by
- 1727 Routing should support HTTP OPTIONS (from [5e0f6214d2421a4931c85ee6a239158c69e57b65]) Support...