Rails(5.1.1) asset pipeline ,sprockets error

2020-08-01 08:30发布

问题:

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