13
我Rails.application.config.assets.paths包含了我想要的資產目錄(自動完成):用於自動完成寶石資產管道找不到JS文件
- /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/[email protected]/gems/rails3-jquery-autocomplete-1.0.5/lib/assets/javascripts
- /Users/kiranb/.rvm/gems/[email protected]/gems/jquery-rails-1.0.19/vendor/assets/javascripts
的LIB /資產/ JavaScript的包含:
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)
雖然找到任何其他資產沒有問題。我究竟做錯了什麼?
既然你解決了你自己的問題,你可以寫出答案並接受它!不建議在帖子標題中加入[[solve]]。 – Hannele 2013-04-04 18:49:30