method
path_for_action
rails 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 1579
def path_for_action(action, path) #:nodoc:
prefix = shallow_scoping? ?
"#{@scope[:shallow_path]}/#{parent_resource.shallow_scope}" : @scope[:path]
if canonical_action?(action, path.blank?)
prefix.to_s
else
"#{prefix}/#{action_path(action, path)}"
end
end