This project is archived and is in readonly mode.
2nd level namespace routing
-
Tom Stuart
This is wrong. The
:namespaceoption is for internal use by thenamespacemethod, to support nested namespaces -- if you insist on setting it manually you must comply with its existing semantics (i.e. it ends with a slash).If you want to nest namespaces, go right ahead:
map.namespace(:school_admin) do |school_admin| school_admin.namespace(:staff) do |staff| # ... end end -
Joshua Tew
Oops my sincere apologies for my ignorance of the nested namespace
Thanks for the info, managed to get what I want by
map.namespace(:staff) do |staff| staff.namespace(:school_admin) do |school_admin| school_admin.resources :programmes end endand
<% form_for([:staff,:school_admin, @programme]) do |f| %>Thank you so much!! : )
-
Pratik
- State changed from new to invalid
-
Andrea Campi
- Tag changed from 2, level, namespace to 2-3-stable, level, namespace
- Importance changed from to