hello,
I am facing a problem in while defining named routes
Here is my code in config/routes.rb
map.addon ''/addons'',:controller =>
''settings'',:action => ''addons''
map.demonstration ''/demonstrations'',:controller =>
''settings'',:action
=> ''demonstrations''
map.support ''/supports'',:controller =>
''settings'',:action =>
''supports''
map.overview ''/overviews'',:controller =>
''settings'',''action'' =>
''overviews''
map.download ''/downloads'' ,:controller =>
''settings'' ,''action'' =>
''downloads''
map.documentation ''/documentations'',:controller =>
''settings'',:action
=> ''documentations''
Now when I try to access the /overviews page I get the following errors
Unknown action
No action responded to index. Actions: addons, demonstrations,
documentations, downloads, overviews, and supports
so I ran rake routes and found that this
addon /addons
{:action=>"addons",:controller=>"settings"}
demonstration /demonstrations {:action=>"demonstrations",
:controller=>"settings"}
support /supports
{:action=>"supports",:controller=>"settings"}
<b> overview /overviews {:action=>"index",
:controller=>"settings",
"action"=>"overviews"} </b>
<b> download /downloads {:action=>"index",
:controller=>"settings",
"action"=>"downloads"} </b>
documentation /documentations
{:action=>"documentations",:controller=>"settings"}
Look that rake routes generated for ''/overviews'' and
''/downloads'' which
is weird in my sense
I have define named routes many times never such weird info in rake
routes neither the above error
Any help would be appreciated
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.