Guest User

Untitled

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