1
我從rails-assets.org獲得的所有資產都得到了Sprockets :: FileNotFound,即使我已按照指示進行操作rails-assets.org(見下面,也做了一個捆綁安裝)。 Rails.application.config.assets.paths將gem文件顯示爲資產路徑。艾想法還缺少什麼?從https://rails-assets.org/加載的資產獲取Sprockets :: FileNotFound
的Gemfile:
source 'https://rubygems.org'
source 'https://rails-assets.org'
...
#gems from rails-assets.org. These are gems created from Bower's repository
gem 'rails-assets-angular'
gem 'rails-assets-angular-ui-router'
gem 'rails-assets-d3'
gem 'rails-assets-elasticsearch'
gem 'rails-assets-lodash'
gem 'rails-assets-nvd3'
gem 'rails-assets-restangular'
gem 'rails-assets-angular-bootstrap'
的application.js:
...
//From rails-assets.org
//= require angular
//= require angular-ui-router
//= require d3
//= require elasticsearch
//= require lodash
//= require nvd3
//= require restangular
//= require angular-bootstrap
//= require kamaji_main
//= require_tree .