Let’s call my first controller “admin”
It’s my main administration controller
My second controller is called “admin/category”
I use this controller to manage my categories on the admin side.
Now if I enter the following url
I encounter an error because rails tries to use the default route
and tries to match with the “admin” controller and the action “category”
and the id “list”.
I think this behaviour is not normal because in the “admin” controller
there is no “category” action.
I’d like rails to find by itself the controller “admin/category” and
call the “list” action.
In the present case i’m forced to define a new route
map.connect ‘admin/category/:action/:id’, :controller =>
If i had no “admin” controller but only a “admin/category” controller it
works with default route.
I’m i right ? or is there some configuration trick i didn’t noticed ?