instance method
check_path_parameters!
Ruby on Rails 4.2.9
Since v4.2.9 Last seen in v4.2.9Signature
check_path_parameters!()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 56
def check_path_parameters!
# If any of the path parameters has an invalid encoding then
# raise since it's likely to trigger errors further on.
path_parameters.each do |key, value|
next unless value.respond_to?(:valid_encoding?)
unless value.valid_encoding?
raise ActionController::BadRequest, "Invalid parameter: #{key} => #{value}"
end
end
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 56
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request