我的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)
没有找到任何其他资产,但是.我究竟做错了什么?
解决方法
正如问题的原始海报所述:
通过重新启动服务器来解决问题.