Displaying 1 result from an estimated 1 matches for "symbolized_path_param".
Did you mean:
symbolized_path_params
2011 Jan 10
0
Can't use ActionDispatch::Request in Rails middleware because path_parameters get lost
....parameters"] ||= begin
params = request_parameters.merge(query_parameters)
params.merge!(path_parameters)
encode_params(params).with_indifferent_access
end
end
alias :params :parameters
def path_parameters=(parameters) #:nodoc:
@symbolized_path_params = nil
@env.delete("action_dispatch.request.parameters")
@env["action_dispatch.request.path_parameters"] = parameters
end
You can also see the Router Dispatcher directly grabbing the
path_parameters from the environment instead of going to through the
req...