Two months ago i developed my first little application with Ruby on
Rails.
This application uses subcontrollers as in:
admin/subcontroller/action/id
This works fine in that application.
But i wanted to develop a new application. Now when create a controller
named admin with different subcontrollers it doesn''t seem to work.
When i browse to : admin/subcontroller/action it says it cant find the
action in admin controller.
When i manually add a map.connect line where it states:
map.connect ''admin/subcontroller/:action/:id'', :controller
=>
''admin/subcontroller'' it works.
but then i have to add a line for every subcontroller.
I dont get it, did something change in the codebase in the last 2
months?
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---