Fixed that the :multipart option in FormTagHelper#form_tag would be ignored [Yonatan Feldman]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@877 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-03-07 11:42:40 +00:00
parent 09a15f528d
commit c81f0309eb
2 changed files with 7 additions and 2 deletions

@ -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]

@ -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)