instance method
path_parameters
Ruby on Rails 3.1.12
Since v3.0.20Signature
path_parameters()
Returns a hash with the \parameters used to form the \path of the request. Returned hash keys are strings:
{'action' => 'my_action', 'controller' => 'my_controller'}
See symbolized_path_parameters for symbolized keys.
Source
# File actionpack/lib/action_dispatch/http/parameters.rb, line 34
def path_parameters
@env["action_dispatch.request.path_parameters"] ||= {}
end
Defined in actionpack/lib/action_dispatch/http/parameters.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Parameters