When a validation error occurs, Rails helpfully wraps the field in a div tag so you can style it. But sometimes you don’t want this behavior. In this episode you will see how to customize it.

Read more at the source