method
extra_tags_for_form
extra_tags_for_form(html_options)
private
Hide source
# File actionpack/lib/action_view/helpers/form_tag_helper.rb, line 539 def extra_tags_for_form(html_options) snowman_tag = tag(:input, :type => "hidden", :name => "utf8", :value => "✓".html_safe) method = html_options.delete("method").to_s method_tag = case method when /^get$/i # must be case-insensitive, but can't use downcase as might be nil html_options["method"] = "get" '' when /^post$/i, "", nil html_options["method"] = "post" token_tag else html_options["method"] = "post" tag(:input, :type => "hidden", :name => "_method", :value => method) + token_tag end tags = snowman_tag << method_tag content_tag(:div, tags, :style => 'margin:0;padding:0;display:inline') end