Rails(5.1.1) asset pipeline ,sprockets error

2020-08-01 08:27发布

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.

enter image description here

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

1条回答
劳资没心,怎么记你
2楼-- · 2020-08-01 08:58

Revert to the original behaviour by adding

Rails.application.config.assets.unknown_asset_fallback = true

to the file assets.rb in config/initializers

查看更多
登录 后发表回答