Show full error messages with simple form?

拈花ヽ惹草 提交于 2019-11-30 22:50:24

If anyone is still wondering there is an easy way to do this now, as referenced here

Simply under config/initializers/simple_form.rb change b.user :error to b.user :full_error and now your error messages will be the equivalent of RESOURCE.errors.full_messages

Note: if you are using bootstrap w/ simple form you change simple_form_bootstrap.rb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!