我只是部署我的雲端服務器的應用程序,然後enconter錯誤:部署rails應用程序。 jQuery的UI錯誤
ActionView::Template::Error (couldn't find file 'jquery-ui'
(in /home/me/.rvm/gems/ruby-1.9.3-p429/gems/activeadmin-0.6.0/app/assets/javascripts/active_admin/base.js:2)):
我以前部署一個共享的主機上的相同的應用程序,但我沒有得到這個錯誤previoulsy。所以我想我錯過了我的部署。 順便說一下在base.js:
//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require active_admin/application
而且在我的應用程序/資產/ Java腳本/ application.js.erb:
//= require Player/soundmanager2-nodebug-jsmin.js
//= require jquery
//= require jquery.ui.all
//= require jquery_ujs
//= require best_in_place
//= require best_in_place.purr
//= require jquery-fileupload
//= require contextMenu/jquery.contextMenu.js
//= require contextMenu/jquery.ui.position.js
//= require_tree .
//= require_tree ./Player
編輯:在我的Gemfile:
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem 'jquery-fileupload-rails'
gem 'jquery-ui-rails'
寶石「的jQuery UI的護欄」已經是資產組 – GeorgesLeYeti
之外@GeorgesLeYeti如果你看看這個錯誤,它說'(找不到文件'jquery-ui''它正在尋找'jquery-ui'。從你以前的評論你剛纔提到'gem'jquery-ui-rails' ' – David
@GeorgesLeYeti此外,應該首先調用基礎架構'jquery'文件。所需文件的排序很重要。更進一步,我不明白爲什麼你有'app/assets/javascripts/application.js.erb'這個不會使對我沒有意義你爲什麼這樣做這 – David