This project is archived and is in readonly mode.

#4899 ✓resolved
Daisuke Fujimura

route generation fails with :module written in Symbol

Reported by Daisuke Fujimura | June 18th, 2010 @ 01:37 PM

Named route is not generated since a Symbol defining module name won't be converted to String.

This might be a regression caused by commit:6db9558416cf2133adacbe1634f28c25bfe618d6

I attached a patch to fix this with a test.

This is a stack trace with my app which where working just before the commit above.

$ rake test (in /home/fujimura/a_project) /home/fujimura/src/rails/actionpack/lib/action_dispatch/routing/mapper.rb:874:in
name_for_action': undefined methodtr' for :users:Symbol (NoMethodError)

    from /home/fujimura/src/rails/actionpack/lib/action_dispatch/routing/mapper.rb:868:in `options_for_action'
    from /home/fujimura/src/rails/actionpack/lib/action_dispatch/routing/mapper.rb:722:in `match'
    from /home/fujimura/src/rails/actionpack/lib/action_dispatch/routing/mapper.rb:287:in `map_method'
    from /home/fujimura/src/rails/actionpack/lib/action_dispatch/routing/mapper.rb:239:in `get'
    from /home/fujimura/a_project/config/routes.rb:38

Comments and changes to this ticket

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>

Referenced by

Pages