我已經安裝了我的rails項目的狂歡寶石,並且我得到了這個錯誤couldn't find file 'jquery.ui.all'
我看到了太多的問題,並且解決了這個問題,但是我沒有得到任何解決方案然而。 我的RVM版本:ruby on rails - spree.js'jquery.ui.all'
rvm list
紅寶石2.0.0-P353 [x86_64的]
= *紅寶石2.2.0 [x86_64的]
的Rails版本:Rails的4.1.8
這是我的觀點的錯誤頁面:
Sprockets::FileNotFound in Spree::Home#index
Showing /home/sadk/.rvm/gems/ruby-2.2.0/gems/spree_frontend-2.4.2/app/views/spree/shared/_head.html.erb where line #11 raised:
couldn't find file 'jquery.ui.all'
(in /home/sadk/.rvm/gems/ruby-2.2.0/bundler/gems/spree_fancy-bdeaeb9ced29/app/assets/javascripts/spree/fancy.js:3)
Extracted source (around line #11):
<%= stylesheet_link_tag 'spree/frontend/all', :media => 'screen' %>
<%= stylesheet_link_tag 'spree/fancy/print', :media => 'print' %><%= csrf_meta_tags %>
<%= javascript_include_tag 'spree/frontend/all' %>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6/html5shiv.min.js"></script>
<![endif]-->
<%= javascript_include_標籤'spree/frontend/all'%>是第11行有錯誤。
我嘗試添加
// =需要jquery.ui.all
我的application.js,但問題是一樣的。你能幫我解釋我應該做什麼嗎?
束後,我可以在列表中看到
...
Using jquery-rails 3.1.2
Using jquery-ui-rails 5.0.3
...
我沒有任何特殊的方法來包括jquery,只是我已經安裝狂歡作爲狂歡指南。我試過,但不幸的是問題是一樣的。 – 2015-01-20 22:30:06