method
path_for_action
v3.2.1 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Resources
path_for_action(action, path)protected
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1430
def path_for_action(action, path) #:nodoc:
prefix = shallow_scoping? ?
"#{@scope[:shallow_path]}/#{parent_resource.path}/:id" : @scope[:path]
path = if canonical_action?(action, path.blank?)
prefix.to_s
else
"#{prefix}/#{action_path(action, path)}"
end
end