instance method
path_parameters
Ruby on Rails 6.0.6
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 83
def path_parameters
get_header(PARAMETERS_KEY) || set_header(PARAMETERS_KEY, {})
end
Defined in actionpack/lib/action_dispatch/http/parameters.rb line 83
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Parameters