This project is archived and is in readonly mode.
constraints with resources in routes don't catch regex
Reported by Anthony Green | March 16th, 2010 @ 07:42 AM | in 3.0.2
resources :resource, :constraints => { :id => /regex/ }
doesn't catch the regex and lets the request through to the controller
match 'path/:id' => 'controller#action', :constraints => { :id => /regex/ }
does work
The old :conditions format used to work
Comments and changes to this ticket
-
José Valim March 27th, 2010 @ 02:01 PM
- Assigned user set to josh
- Milestone cleared.
-
Andrew White March 28th, 2010 @ 11:32 AM
- Tag changed from constraints routes to 3.0, constraints, patch, resources, routes
Attached patch adds support for constraints on resources.
-
Rizwan Reza March 28th, 2010 @ 08:08 PM
- State changed from new to resolved
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
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>