Rails won't load asset pipeline

前端 未结 6 1902
时光说笑
时光说笑 2021-01-18 05:21

I ran rake assets:precompile by mistake on development, and Rails stopped loading the assets on development. I only get application.js and ap

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-18 05:31

    Incase it's helpful to anyone - I had an issue where neither application.js/.css loading in development (I could still see the manifest lines when viewing the source).

    I was running an old rails 3.2.2 app for some reason I had to go in and add blank line to both the manifest files (application.js & application.css) and save them - then assets started working properly.

    I removed the blank lines and it still worked so I'm assuming perhaps it just needed a newer modified date stamp on the files.

提交回复
热议问题