Agile Web Development with Rails 7 - fields with errors are not highlighted (loc 2620) [solved]

@rubys

The text reads “It’s pretty impressive: the fields with errors are highlighted, and the errors are summarized in a nice list at the top of the form.”

There IS a summarized list of errors, but the fields themselves are not highlighted.

I’ve updated the book to say that this can be fixed with a bit of CSS, to be placed into app/assets/stylesheets/field_with_errors.css:

.field_with_errors :is(input, textarea, select) {
  border: solid red 2px !important;
}