Skip to content

Instantly share code, notes, and snippets.

@thekarladam
Created November 30, 2010 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thekarladam/722548 to your computer and use it in GitHub Desktop.
Save thekarladam/722548 to your computer and use it in GitHub Desktop.
Loading development environment (Rails 3.0.1)
>> rs = ActionController::Routing::Routes
... tons of lines ...
>> puts rs.routes
ANY /(.:format) {:controller=>"conferences", :action=>"index"}
GET /conferences/:conference_id/events(.:format) {:controller=>"events", :action=>"index"}
POST /conferences/:conference_id/events(.:format) {:controller=>"events", :action=>"create"}
GET /conferences/:conference_id/events/new(.:format) {:controller=>"events", :action=>"new"}
GET /conferences/:conference_id/events/:id/edit(.:format) {:controller=>"events", :action=>"edit"}
GET /conferences/:conference_id/events/:id(.:format) {:controller=>"events", :action=>"show"}
PUT /conferences/:conference_id/events/:id(.:format) {:controller=>"events", :action=>"update"}
DELETE /conferences/:conference_id/events/:id(.:format) {:controller=>"events", :action=>"destroy"}
GET /conferences(.:format) {:controller=>"conferences", :action=>"index"}
POST /conferences(.:format) {:controller=>"conferences", :action=>"create"}
GET /conferences/new(.:format) {:controller=>"conferences", :action=>"new"}
GET /conferences/:id/edit(.:format) {:controller=>"conferences", :action=>"edit"}
GET /conferences/:id(.:format) {:controller=>"conferences", :action=>"show"}
PUT /conferences/:id(.:format) {:controller=>"conferences", :action=>"update"}
DELETE /conferences/:id(.:format) {:controller=>"conferences", :action=>"destroy"}
ANY /rails/info/properties(.:format) {:controller=>"rails/info", :action=>"properties"}
>> rs.recognize_path "/"
RuntimeError: route set not finalized
from /Library/Ruby/Gems/1.8/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:79:in `recognize'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/routing/route_set.rb:506:in `recognize_path'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.1/lib/active_support/deprecation/proxy_wrappers.rb:24:in `__send__'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.1/lib/active_support/deprecation/proxy_wrappers.rb:24:in `method_missing'
from (irb):2
>> rs.generate :controller => :conference
RuntimeError: route set not finalized
from /Library/Ruby/Gems/1.8/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:208:in `generate'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/routing/route_set.rb:395:in `generate'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/routing/route_set.rb:453:in `generate'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.1/lib/active_support/deprecation/proxy_wrappers.rb:24:in `__send__'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.1/lib/active_support/deprecation/proxy_wrappers.rb:24:in `method_missing'
from (irb):5
>> rs.recognize_path "conferences/1/events"
RuntimeError: route set not finalized
from /Library/Ruby/Gems/1.8/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:79:in `recognize'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/routing/route_set.rb:506:in `recognize_path'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.1/lib/active_support/deprecation/proxy_wrappers.rb:24:in `__send__'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.1/lib/active_support/deprecation/proxy_wrappers.rb:24:in `method_missing'
from (irb):6
>> rs.generate :controller => :event
RuntimeError: route set not finalized
from /Library/Ruby/Gems/1.8/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:208:in `generate'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/routing/route_set.rb:395:in `generate'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/routing/route_set.rb:453:in `generate'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.1/lib/active_support/deprecation/proxy_wrappers.rb:24:in `__send__'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.1/lib/active_support/deprecation/proxy_wrappers.rb:24:in `method_missing'
from (irb):7
@basgys
Copy link

basgys commented Feb 17, 2011

Did you set your database up ? Try rake db:setup in your poject (not irb)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment