Asset consolidation does not compile on the local server

I just upgraded to Rails 3.1 and am having a problem with Asset Pipeline. Basically, when I do a local dev, and I make changes to any of my .css.scss files, I have to run:

rake assets:precompile 

On the command line and THEN, refresh your browser before I can see any style changes. How can I make it so that it automatically precompiles every time I reload the page in development?

Thanks in advance!

+4
source share
1 answer

Check out the last section of the pipeline manual and make sure that the settings that you have in the updated application configuration files match the settings in the manual.

Delete the files you publish / assets and should be fine from you.

+8
source

Source: https://habr.com/ru/post/1384979/


All Articles