Rails(5.1.1) asset pipeline ,sprockets error

亡梦爱人 提交于 2020-01-23 03:59:08

问题


In my rails app I used three gems for authentication and styling, they are devise, twitter-bootstrap-rails and devise-bootstrap-views.

After following all the steps in the guides, I started my rails server an error showed up saying

The asset "apple-touch-icon-144x144-precomposed.png" is not present in the asset pipeline.

What does it mean and how can I sort it out?


回答1:


Revert to the original behaviour by adding

Rails.application.config.assets.unknown_asset_fallback = true

to the file assets.rb in config/initializers



来源:https://stackoverflow.com/questions/44606000/rails5-1-1-asset-pipeline-sprockets-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!