When implementing a login form using devise, ** error message ** can be displayed, but when the error message is displayed, as shown in the image below,
A class called div class =" field_with_errors "
is automatically generated and the view collapses.
The solution is pretty simple, just specify display: contents
in css as below!
.css
.field_with_errors {
display: contents
}
This is an error that beginners may encounter, so I hope you can refer to it!
Recommended Posts