rails 3 routes lack id constraint from edit action
Reported by Betelgeuse | November 25th, 2010 @ 11:31 AM
Looking at generated hobo_routes.rb all but :edit actions have
this :constraints => { :id => %r([^/.?]+) }
For the sake of consistency it should also be on the edit_model
route.
Comments and changes to this ticket
-
Domizio Demichelis November 26th, 2010 @ 03:44 AM
- State changed from new to invalid
- Tag cleared.
In the class Generators::Hobo::Routes::Router you can read the following comment about the id constraint:
# specify that an id CANNOT be null - needed to disambiguate /models from /models/[nil]
The edit_model route does not have that problem.
-
Betelgeuse November 26th, 2010 @ 08:26 AM
Even if it's not mandatory for Hobo to function it can still be added so that :id has the same restrictions on all actions.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป