instance method
action_path
Ruby on Rails 3.0.20
Since v3.0.20Signature
action_path(name, path = nil)
No documentation comment.
Parameters
-
namereq -
pathopt = nil
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1308
def action_path(name, path = nil)
path || @scope[:path_names][name.to_sym] || name.to_s
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1308
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources