module ActionView::Helpers::FormHelper

Public Instance Methods

form_tag_in_block(html_options, &block) click to toggle source

覆写form_tag_in_block方法

# File lib/multi_submit_check.rb, line 47
def form_tag_in_block(html_options, &block)
  content = capture(&block)
  output = form_tag_html(html_options)
  if (Rails.configuration.multiple_submit_check rescue false)
    output << token_field   #给form_tag方法添加验证是否重复提交表单的hash串
  end
  output << content
  output.safe_concat("</form>")
end