我的 Rails.application.config.assets.paths 包含了我想要的一个资源目录 (autocomplete):
- /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
自动完成宝石的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 .
但是,我一直收到以下错误:
无法找到文件 'autocomplete-rails' (位于 /Users/kiranb/application/app/assets/javascripts/application.js:11)
尽管其他资产没有问题。 我做错了什么?
[已解决]
的内容。 - Hannele