Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed that the :multipart option in FormTagHelper#form_tag would be i…

…gnored [Yonatan Feldman]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@877 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit c81f0309ebb361ae04613a2af1317624ab878dc8 1 parent 09a15f5
@dhh dhh authored
View
5 actionpack/CHANGELOG
@@ -1,3 +1,8 @@
+*SVN*
+
+* Fixed that the :multipart option in FormTagHelper#form_tag would be ignored [Yonatan Feldman]
+
+
*1.5.1* (7th March, 2005)
* Fixed that the routes.rb file wouldn't be found on symlinked setups due to File.expand_path #793 [piotr@t-p-l.com]
View
4 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -14,9 +14,9 @@ module FormTagHelper
def form_tag(url_for_options = {}, options = {}, *parameters_for_url)
html_options = { "method" => "post" }.merge(options.stringify_keys)
- if html_options[:multipart]
+ if html_options["multipart"]
html_options["enctype"] = "multipart/form-data"
- html_options.delete(:multipart)
+ html_options.delete("multipart")
end
html_options["action"] = url_for(url_for_options, *parameters_for_url)
Please sign in to comment.
Something went wrong with that request. Please try again.