Skip to main content

Command Palette

Search for a command to run...

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

Updated
1 min read
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.


Done


Celebrate

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!


More from this blog

Alexandre Calaça's Blog

265 posts

I'm a passionate software engineer with a deep love for turning complex problems into elegant solutions through code.