Like as I mentioned in title - I have to precompile assets every time I've made any change to see how it looks like - I've tried config.assets.compile = true
, without success.
I've also tried RAILS_ENV = 'development'
but with same effect. Please help me because it is really annoying.
My system is running on:
- Xubuntu
- Rails -v: 3.1.1
- Ruby -v: 1.9.2p290
I also tried:
config.action_controller.perform_caching = true
One cause of this could be that you ran rake assets:precompile
once. The server then uses public/assets
exclusively, without trying to compile your assets on the fly.
Try removing the public/assets
directory.
来源:https://stackoverflow.com/questions/8311619/i-need-precompile-assets-every-time-ive-made-any-change-to-see-difference-in-br