instance method
multipart_requestify
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
multipart_requestify(params, first=true)
No documentation comment.
Parameters
-
paramsreq -
firstopt = true
Source
# File actionpack/lib/action_controller/integration.rb, line 365
def multipart_requestify(params, first=true)
returning Hash.new do |p|
params.each do |key, value|
k = first ? CGI.escape(key.to_s) : "[#{CGI.escape(key.to_s)}]"
if Hash === value
multipart_requestify(value, false).each do |subkey, subvalue|
p[k + subkey] = subvalue
end
else
p[k] = value
end
end
end
end
Defined in actionpack/lib/action_controller/integration.rb line 365
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Integration::Session