K
K
Kirill Platonov2014-02-16 21:41:53
Ruby on Rails
Kirill Platonov, 2014-02-16 21:41:53

How to customize rails form errors?

Friends, faced with a trivial but unpleasant problem. When validating a form, the framework automatically wraps the label and input in div.field_with_errors. I need to change this behavior, override the error template for fields and labels throughout the application. Who faced - tell me how you solved this problem.
PS Under Rails 4

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2014-02-17
@mannaro

maybe it's easier to add a css class?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question