Skip to content

How to change css style and apply it #8899

Discussion options

You must be logged in to vote

If you're making changes to your CSS file in a Ruby on Rails project and not seeing those changes reflected in the browser, there are a few potential reasons why this might be happening:

  1. Asset Pipeline: Ruby on Rails uses the asset pipeline to manage assets like CSS files. When you make changes to your CSS file, you need to ensure that the changes are being picked up by the asset pipeline and compiled properly.

  2. Caching: Your browser or the server may be caching the old CSS file, preventing the new changes from being loaded. You've mentioned that you've tried restarting the web server and purging the cache, but sometimes the cache can be stubborn.

  3. Precompiled Assets: In production en…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GrygorievEvgeniy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants