This project is archived and is in readonly mode.
Problem with routes after 3.0.2 upgrade
Reported by Neil Middleton | November 16th, 2010 @ 01:46 PM
I have the following in my routes file: https://gist.github.com/701831
This was working perfectly in Rails 3.0.1
However, upon upgrade to 3.0.2 I receive the following on server start:
/Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:118:in
requirements': undefined method
source' for www (NoMethodError)
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:117:in `each'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:117:in `requirements'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:113:in `tap'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:113:in `requirements'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:185:in `constraints'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:109:in `conditions'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:55:in `to_route'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:261:in `match'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:1112:in `match'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:1295:in `match'
from /Users/neil/Dropbox/code/charis_applications/config/routes.rb:17
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:661:in `constraints'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:525:in `scope'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/mapper.rb:661:in `constraints'
from /Users/neil/Dropbox/code/charis_applications/config/routes.rb:16
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/route_set.rb:233:in `instance_exec'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/actionpack-3.0.2/lib/action_dispatch/routing/route_set.rb:233:in `draw'
from /Users/neil/Dropbox/code/charis_applications/config/routes.rb:1
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:235:in `load'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:235:in `load'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:235:in `load'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/application.rb:127:in `reload_routes!'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/application.rb:127:in `each'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/application.rb:127:in `reload_routes!'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/application.rb:120:in `routes_reloader'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/file_update_checker.rb:32:in `call'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/file_update_checker.rb:32:in `execute_if_updated'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/application/finisher.rb:51
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/application/finisher.rb:52:in `call'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/application/finisher.rb:52
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/initializable.rb:25:in `instance_exec'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/initializable.rb:25:in `run'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/initializable.rb:50:in `run_initializers'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/initializable.rb:49:in `each'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/initializable.rb:49:in `run_initializers'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/application.rb:134:in `initialize!'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/application.rb:77:in `send'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/railties-3.0.2/lib/rails/application.rb:77:in `method_missing'
from /Users/neil/Dropbox/code/charis_applications/config/environment.rb:5
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:239:in `require'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:239:in `require'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/activesupport-3.0.2/lib/active_support/dependencies.rb:239:in `require'
from /Users/neil/Dropbox/code/charis_applications/config.ru:3
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /Users/neil/.rvm/gems/ree-1.8.7-2010.02@charis/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /Users/neil/Dropbox/code/charis_applications/config.ru:1:in `new'
from /Users/neil/Dropbox/code/charis_applications/config.ru:1
This appears to be a regression.
Comments and changes to this ticket
-
José Valim November 16th, 2010 @ 02:25 PM
- State changed from new to resolved
- Importance changed from to Low
Fixed in 3-0-stable. A new release is upcoming.
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>