Created
August 23, 2014 11:51
-
-
Save kawahiro311/9bcf9020ff72a2ce6496 to your computer and use it in GitHub Desktop.
Railsのエラー出力タグ "field-with-errors"を変更
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.action_view.field_error_proc = proc { |html_tag, instance| "<div class='has-error'>#{html_tag}</div>".html_safe } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment