module ActionDispatch::Http::Parameters

def path_parameters

See symbolized_path_parameters for symbolized keys.

{'action' => 'my_action', 'controller' => 'my_controller'}

Returned hash keys are strings:
Returns a hash with the \parameters used to form the \path of the request.
def path_parameters
  @env["action_dispatch.request.path_parameters"] ||= {}
end