ruby on rails - Module name scopes in routing -
I have an intranet application with multiple modules, I want to make routing for example:
http: // intranet / calendar / ... http: // intranet / site_admin / ... http: // intranet / work / ... each module May contain several or single controllers. How to write such a route?
You can use namespaces:
map.namespace : Calendar | Calendar | Calendar.resources: first_controller calendar.resources: second_controller and and so on. Often people enter admin part of the app in Admin Namespace (see) Try Google "Rail Namespace"
Comments
Post a Comment