So, just try Rails 3.1-rc1 with the Sprockets pipeline:
I ran rake assets:precompile
and I get the directory / public / assets, and the application.js file is an MD5 hash:
application-266b6b0b4fbd28fc01145d90a4158b2f.js
But the problem is this:
When I update JS and run rake assets:precompile , I get more JS files and it does not delete the old ones.
I have no doubt how this works - the browser only picks up the first one, and I have to manually delete the old ones. Which is not like how it should work.
Just a side handle: It seems I need to run rake assets:precompile every time I change something. This is painful.
(I suppose there should be some docs about how this all works).
Thanks.
source share