If I try the Root-URL of my Rails-App, I get the following error:
NoMethodError undefined method `[]' for :company_url:Symbol
# (part of the) content of my config/routes.rb
ActionController::Routing::Routes.draw do |map|
map.company 'company', :controller => 'companies', :action => 'index'
map.root :company_url
end
But the API-Doc for ActionController::Routing says explicitly:
You can also specify an already-defined named route in your map.root call:
# In routes.rb map.new_session :controller => 'sessions', :action => 'new' map.root :new_session
What am I doing wrong? :-)