ruby-on-rails – 资产管道没有找到JS文件

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 资产管道没有找到JS文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的Rails.application.config.assets.paths包含我想要的资产的目录(自动完成):
- /Users/kiranb/application/app/assets/images
- /Users/kiranb/application/app/assets/javascripts
- /Users/kiranb/application/app/assets/stylesheets
- /Users/kiranb/application/vendor/assets/javascripts
- /Users/kiranb/application/vendor/assets/stylesheets
- /Users/kiranb/.rvm/gems/ruby-1.9.2-p290@application/gems/rails3-jquery-autocomplete-1.0.5/lib/assets/javascripts
- /Users/kiranb/.rvm/gems/ruby-1.9.2-p290@application/gems/jquery-rails-1.0.19/vendor/assets/javascripts

autocomplete gem的lib / assets / javascripts包含:

autocomplete-rails-uncompressed.js  autocomplete-rails.js

我的application.js包括

//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require autocomplete-rails
//= require_tree .

但是,我不断收到错误

couldn't find file 'autocomplete-rails'  
   (in /Users/kiranb/application/app/assets/javascripts/application.js:11)

没有找到任何其他资产,但是.我究竟做错了什么?

解决方法

正如问题的原始海报所述:

通过重新启动服务器来解决问题.

原文链接:https://www.f2er.com/ruby/272827.html

猜你在找的Ruby相关文章