我剛剛完成全新安裝並能夠訪問localhost:3000上的默認rails頁面,但是當我安裝activeadmin gem時,訪問/ admin /時出現問題,並在/ admin/login上收到以下錯誤(我被重定向,但這是我在頁面上看到的:) :)Ruby on Rails:「找不到文件jquery-ui'」
我該怎麼辦?我已經完成了軟件包更新,並沒有修復它。
這裏的部分錯誤消息:
鏈輪:: FileNotFound在#新
顯示/usr/local/rvm/gems/ruby-1.9.3-p392/ Active_admin /色器件/會話gems/activeadmin-> 0.6.0/app/views/layouts/active_admin_logged_out.html.erb其中第12行出現:
找不到文件'jquery-ui' (在/ usr/local/rvm/gems/ruby-1.9.3-p392/gems/activeadmin-> 0.6.0/app/assets/javascripts/active_admin/base.js:2)
這裏是我的寶石文件:
source 'https://rubygems.org'
gem 'rails', '3.2.12'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# 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 'activeadmin'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
顯示你的application.js文件 – uday
@uDaY:active_admin使用它自己的清單 - application.js文件在這裏不應該有問題。 – PinnyM