Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Routes with symbols produces a silent fail

#2828

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 Defining routes with symbols failes

Reported by blaxter · June 23rd, 2009 @ 10:08 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [6673001a5e14ef2d342a03ae16f1da481bc01084]) Allow symbols on routes declaration (:controller and :action values) [#2828 Routes with symbols produces a silent fail state:resolved]

    Signed-off-by: Yehuda Katz + Carl Lerche ykatz+clerche@engineyard.com
    http://github.com/rails/rails/commit/6673001a5e14ef2d342a03ae16f1da...

    July 2nd, 2009 @ 08:46 PM

  2. Repository