如何将丢失的资产文件夹预编译添加到Rails 4的public / assets文件夹中?

时间:2016-03-06 19:57:36

标签: ruby-on-rails

我在Rails 4项目中购买了一个html主题。 我试图编译资产以准备生产服务器。

rake assets:precompile RAILS_ENV=production

另外,我包含了这个gem来修复我的图片摘要名称问题

https://github.com/alexspeller/non-stupid-digest-assets

但问题是这个主题用作图标的CSS / fontello文件夹在资产/公共文件夹中没有像这样

enter image description here

真实文件夹包含css文件夹,如下所示: enter image description here

这是我从浏览器控制台获得的。

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/assets/fontello/css/icon_set_2.css 
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/assets/fontello/css/fontello.css 
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/assets/icon_restaurant/css/icon_restaurants.css   
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/assets/fontello/css/icon_set_1.css 
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/assets/icon_restaurant/css/icon_restaurants.css 
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/assets/fontello/css/icon_set_2.css 
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/assets/fontello/css/fontello.css Failed to load resource: the server responded with a status of 404 (Not Found)

我该如何解决这个问题? 谢谢!

0 个答案:

没有答案