How to find out the exact CSS configuration used by Rails for validation error messages

Open your Rails application

In a Web Browser, specially Google Chrome, open your Ruby on Rails application.

Trigger a validation error

Make sure you navigate to a page where you can trigger a validation error or view an existing validation error message.

Inspect the error message

Mouse your mouse to the error validation message or the element containing the message and right-click on it.

Check the CSS color

In the Styles tab, check the configuration.



The It Crowd Birthday GIFs | Tenor

Reach me out

Final thoughts

Thank you for reading this article.

If you have any questions, thoughts, suggestions, or corrections, please share them with us.

We appreciate your feedback and look forward to hearing from you.

Feel free to suggest topics for future blog articles. Until next time!