Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- form_tag_helper.rb (revision 5317)
- +++ form_tag_helper.rb (working copy)
- @@ -18,6 +18,7 @@
- # If "put", "delete", or another verb is used, a hidden input with name _method
- # is added to simulate the verb over post.
- def form_tag(url_for_options = {}, options = {}, *parameters_for_url, &proc)
- + url_for_options[:escape] ||= false unless url_for_options.kind_of? Hash
- html_options = options.stringify_keys
- html_options["enctype"] = "multipart/form-data" if html_options.delete("multipart")
- html_options["action"] = url_for(url_for_options, *parameters_for_url)
Add Comment
Please, Sign In to add comment