If I try the root-ur of my Rail-App, I get the following error:
< Blockquote>NoMethodError For the undefined method `[] ': company_url: symbol
# (part of) my config / routes.rb ActionController :: routing :: rights contents of . Draw | Map | Map.company 'Company' ,: Controller = & gt; 'Companies',: action = & gt; 'Index' map.root: company_url end
But the API Doctor for the ActionController :: API explicitly says:
You already specified Can be named- Designated route specified in your map.root call:
# routes.rb map.new_session: controller => 'Session',: action = & gt; 'New' map.root: new_session
What am I doing wrong? : -)
You are not designing your named route (company) in your own root, And undefined routes (company_url).
I think is what you are confusing map.resources: company
created by autogenerated url which will automatically generate * _url routes Setting you are using map.company named route - no map.resources
Comments
Post a Comment