code_junkie

NoMethodError: Using already-defined named route in map.root call

Nov 14th, 2011
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # (part of the) content of my config/routes.rb
  2. ActionController::Routing::Routes.draw do |map|
  3. map.company 'company', :controller => 'companies', :action => 'index'
  4. map.root :company_url
  5. end
  6.  
  7. # In routes.rb
  8. map.new_session :controller => 'sessions', :action => 'new'
  9. map.root :new_session
Add Comment
Please, Sign In to add comment