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