How to change css style and apply it #8899
-
Hello everyone. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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:
Here are some steps you can take to troubleshoot the issue:
|
Beta Was this translation helpful? Give feedback.
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:
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.
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.
Precompiled Assets: In production en…