`

去掉form_for的报错绑定属性功能

阅读更多
去掉form_for的报错绑定属性功能,在config的initializers下加入以下代码:

ActionView::Base.field_error_proc = Proc.new{|html_tag, instance|
  #"<li class=\"fieldWithErrors\">#{html_tag}</li>"
  html_tag
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics