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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Chris Hoeppner 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 -- 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 -~----------~----~----~----~------~----~------~--~---