Module | < |
In: |
lib/generators/templates/common/application.rb
lib/generators/templates/thin/stubs/application.rb lib/generators/templates/very_thin/lib/%base_name%.rb |
All Slice code is expected to be namespaced inside a module
Setup routes inside the host application
@param scope<Merb::Router::Behaviour>
Routes will be added within this scope (namespace). In fact, any router behaviour is a valid namespace, so you can attach routes at any level of your router setup.
@note prefix your named routes with :<%= symbol_name %>_
to avoid potential conflicts with global named routes.