Methods
P
S
Instance Public methods
parameters()

Returns both GET and POST parameters in a single hash.

This method is also aliased as params
    # File actionpack/lib/action_dispatch/http/parameters.rb, line 8
 8:       def parameters
 9:         @env["action_dispatch.request.parameters"] ||= begin
10:           params = request_parameters.merge(query_parameters)
11:           params.merge!(path_parameters)
12:           encode_params(params).with_indifferent_access
13:         end
14:       end
params()

Alias for parameters

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

See symbolized_path_parameters for symbolized keys.

    # File actionpack/lib/action_dispatch/http/parameters.rb, line 34
34:       def path_parameters
35:         @env["action_dispatch.request.path_parameters"] ||= {}
36:       end
symbolized_path_parameters()

The same as path_parameters with explicitly symbolized keys.

    # File actionpack/lib/action_dispatch/http/parameters.rb, line 24
24:       def symbolized_path_parameters
25:         @symbolized_path_params ||= path_parameters.symbolize_keys
26:       end