instance method
path_for_action
Ruby on Rails 6.0.6
Since v3.0.20 PrivateSignature
path_for_action(action, path)
No documentation comment.
Parameters
-
actionreq -
pathreq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1786
def path_for_action(action, path)
return "#{@scope[:path]}/#{path}" if path
if canonical_action?(action)
@scope[:path].to_s
else
"#{@scope[:path]}/#{action_path(action)}"
end
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1786
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources