Class: Lotus::Routing::Resources Private
- Defined in:
- lib/lotus/routing/resources.rb,
lib/lotus/routing/resources/action.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Set of RESTful resources routes Implementation of Lotus::Router#resources
Defined Under Namespace
Modules: DefaultMemberAction, PluralizedAction Classes: Action, CollectionAction, Create, Destroy, Edit, Index, MemberAction, New, Show, Update
Constant Summary
Constants inherited from Resource
Lotus::Routing::Resource::NESTED_ROUTES_SEPARATOR
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#wildcard_param(route_param = nil) ⇒ Object
private
Return wildcard param between separators.
Methods inherited from Resource
#initialize, #resource, #resources
Constructor Details
This class inherits a constructor from Lotus::Routing::Resource
Instance Method Details
#wildcard_param(route_param = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return wildcard param between separators
43 44 45 |
# File 'lib/lotus/routing/resources.rb', line 43 def wildcard_param(route_param = nil) "/:#{ Lotus::Utils::String.new(route_param).singularize }_id/" end |