获取从https://rails-assets.org/加载的资产的Sprockets :: FileNotFound

时间:2014-07-07 19:51:58

标签: ruby-on-rails-4 asset-pipeline sprockets

我获得了我在rails-assets.org中包含的所有资产的Sprockets :: FileNotFound,尽管我已经按照rails-assets.org上的说明进行了操作(参见下文并进行了捆绑安装)。 Rails.application.config.assets.paths将gem文件显示为资产路径。你知道还缺少什么吗?

的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 .

1 个答案:

答案 0 :(得分:1)

尝试重新启动服务器( ctrl + c ,然后rails s)。