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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -