rails 在form的錯誤信息生成class爲field_with_errors 的div的問題
在application.rb文件裏面加入以下配置即可
config.action_view.field_error_proc = proc {|html, instance| html }
rails 在form的錯誤信息生成class爲field_with_errors 的div的問題
在application.rb文件裏面加入以下配置即可
config.action_view.field_error_proc = proc {|html, instance| html }