我的Gemfile中安装了一个gem:
gem 'jquery-rails'
但它似乎没有起作用。我将它包含在我的application.js.coffee:
中#= require jquery/jquery
但是当我运行bundle exec rake assets:precompile
时,我收到此错误:
Sprockets::FileNotFound: couldn't find file 'jquery/jquery'
我的CSS文件(bootstrap gem)也发生了这种情况。
这个确切的东西在我的另一台计算机上工作,我无法弄清楚改变了什么。如果有帮助,这就是我正在使用的存储库。