Module: Plutonium::Routing
- Defined in:
- lib/plutonium/routing/mapper_extensions.rb,
lib/plutonium/routing/wizard_registration.rb,
lib/plutonium/routing/route_set_extensions.rb,
lib/plutonium/routing/resource_registration.rb
Defined Under Namespace
Modules: MapperExtensions, ResourceRegistration, RouteSetExtensions, WizardRegistration
Constant Summary collapse
- NESTED_ROUTE_PREFIX =
Prefix used for nested resource routes to disambiguate from user-defined routes
"nested_"- NESTED_KEY_PARAM =
Route default naming which nesting a request arrived through.
The router already knows which nested route matched; without this the controller has to work it back out — reading an *id parameter to find the parent, and scanning the path for a "nested" segment to find the association. Neither survives a parent that contributes no id (a singular parent has none), and both are guesses about something the route could simply state.
The value is the key into resource_route_config_lookup, which already holds the parent class and the association name. Carrying the key rather than the names themselves means nothing has to be looked up by string at request time.
:pu_nested_key