instance method
path_parameters
Ruby on Rails 4.2.9
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'}
Source
# File actionpack/lib/action_dispatch/http/parameters.rb, line 39
def path_parameters
@env[PARAMETERS_KEY] ||= {}
end
Defined in actionpack/lib/action_dispatch/http/parameters.rb line 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Parameters