5

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
Benoit Garret
  • 14,027
  • 4
  • 59
  • 64
lukaszkups
  • 5,790
  • 9
  • 47
  • 85

1 Answers1

30

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.

Benoit Garret
  • 14,027
  • 4
  • 59
  • 64
  • 1
    yes, I ran once 'rake assets:precompile'. I deleted public/assets but still my browser don't see my changes - but this time I don't have to run 'rake:precompile' but just restart server - but it is still annoying :/ – lukaszkups Nov 29 '11 at 16:23
  • @ofcapl are you sure you're in the development environment? – Benoit Garret Nov 29 '11 at 16:36
  • 2
    yes, I'm pretty sure - but problem solved - probably after deleting 'public/assets' - it worked after whole system restart[weird o_O] :) thanks :) – lukaszkups Nov 29 '11 at 16:42