Rails simple_form: How to disable error labels?

Viewed 11231

I'm trying to stop simple_form from adding error labels entirely.

tried the followign CSS:

label.error { display:none; }

but simple_form's JavaScript is setting the following rule when it's generated:

display: block;

Am I missing a config that lets me turn off generation entirely?

This stops them from appearing, which works for now:

label.error {
  display: none !important;
  visibility:hidden;
}
4 Answers
Related