When saving a form and a field fails validation, I don’t want the label to be modified at all.
I don’t mind wrapping the input with a div and a class of “field_with_errors”, but how can I stop it from wrapping the label as well?
When saving a form and a field fails validation, I don’t want the label
Share
I wasn’t able to find anything in the ActionView::Base documentation about the field_error_proc method, but here is the solution I came up with. Hopefully this will help others!