Method: ActionDispatch::Http::Parameters#path_parameters

Defined in:
actionpack/lib/action_dispatch/http/parameters.rb

#path_parametersObject

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" }


84
85
86
# File 'actionpack/lib/action_dispatch/http/parameters.rb', line 84

def path_parameters
  get_header(PARAMETERS_KEY) || set_header(PARAMETERS_KEY, {})
end