Hi there!
I guess this is a pretty noob-like question for all the long-aged
railers.
I’d like to keep the controllers for my admin interface inside a folder
called (guess…) “admin”. I wonder if I could make rails notice this
and let me do “admin/:controller/…” without having to make a route for
each controller.
~Chris
Chris H. wrote:
I’d like to keep the controllers for my admin interface inside a folder
called (guess…) “admin”. I wonder if I could make rails notice this
and let me do “admin/:controller/…” without having to make a route for
each controller.
Yup that works fine. All the controller in admin should be in the admin
module (ie Admin::MyController).
if you ruby script/generate admin/foo it will do it for you
Fred