This project is archived and is in readonly mode.
Routes with symbols produces a silent fail
Reported by blaxter | June 23rd, 2009 @ 10:08 PM | in 2.x
If you specify :action as a symbol, Rails won't fail, you will get the Rails view but the controller/action specified won't be executed, so it's really difficult to diagnose if you don't know about it.
The problem is not that routes should accept symbols, but the weird behaviour you get as a result.
This path just converts the symbols to strings when adding routes (test included).
For more info see #692
Comments and changes to this ticket
-
Repository July 2nd, 2009 @ 08:46 PM
- State changed from new to resolved
(from [6673001a5e14ef2d342a03ae16f1da481bc01084]) Allow symbols on routes declaration (:controller and :action values) [#2828 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche ykatz+clerche@engineyard.com
http://github.com/rails/rails/commit/6673001a5e14ef2d342a03ae16f1da... -
Repository July 2nd, 2009 @ 08:46 PM
(from [fc6077d76ecbf20d29e9963afcabfd613d839091]) Allow symbols on routes declaration (:controller and :action values) [#2828 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche ykatz+clerche@engineyard.com
http://github.com/rails/rails/commit/fc6077d76ecbf20d29e9963afcabfd...
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
Tags
Referenced by
- 2828 Routes with symbols produces a silent fail (from [6673001a5e14ef2d342a03ae16f1da481bc01084]) Allow s...
- 2828 Routes with symbols produces a silent fail (from [fc6077d76ecbf20d29e9963afcabfd613d839091]) Allow s...