instance method
path_parameters
Ruby on Rails 7.1.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 symbols:
{ action: "my_action", controller: "my_controller" }
Source
# File actionpack/lib/action_dispatch/http/parameters.rb, line 82
def path_parameters
get_header(PARAMETERS_KEY) || set_header(PARAMETERS_KEY, {})
end
Defined in actionpack/lib/action_dispatch/http/parameters.rb line 82
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Parameters