Rails(5.1.1)资产管道,链轮错误 [英] Rails(5.1.1) asset pipeline ,sprockets error
本文介绍了Rails(5.1.1)资产管道,链轮错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的rails应用程序中,我使用了3个gem进行身份验证和样式设置,它们分别是 devise
, twitter-bootstrap-rails
和 devise-bootstrap-views
。
In my rails app I used three gems for authentication and styling, they are devise
, twitter-bootstrap-rails
and devise-bootstrap-views
.
按照指南中的所有步骤操作后,我启动了Rails服务器,并显示错误消息
After following all the steps in the guides, I started my rails server an error showed up saying
资产管道中不存在资产 apple-touch-icon-144x144-precomposed.png。
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?
推荐答案
通过添加
Rails.application.config.assets.unknown_asset_fallback = true
到文件 assets.rb
在 config / initializers
这篇关于Rails(5.1.1)资产管道,链轮错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文