When a Sprockets object compilation fails (due to a syntax error in CoffeeScript or SASS), it cannot recompile after the error is fixed because it says \"file is already req
It should be:
Rails.application.assets.cache.clear
but this method only in master branch and not even in beta.
Update: added in 4.0.0.beta5.