I ran rake assets:precompile
by mistake on development, and Rails stopped loading the assets on development. I only get application.js
and ap
tl;dr
$ rake assets:clean
$ rails server -e development
ctrl+shift+r
on the app pageNow everything should be as it was before you ran rake assets:precompile
-- end tl;dr --
If the above doesn't work, then a detailed list of steps:
$ rake assets:clean
or $ rm -rf public/assets
to remove the generated assets.config.assets.enabled = true
(to enable rails' asset pipleline)config.assets.compress = false
(so as to not gzip the assets)config.assets.debug = true
(so as to not merge all css and js files into application.[cs|js])config.assets.compile = true
(or not set - to enable runtime compilation of assets)config.serve_static_assets = false
(or not set)$ rails server -e development
This should fix it.