我刚刚完成了全新安装,并且能够访问 localhost:3000 上的默认 Rails 页面,但是当我安装 activeadmin gem 时,我在访问 /admin/ 时遇到了问题,并在 /admin/login 上收到以下错误(我被重定向,但这是我在页面上看到的:)
我该怎么办?我已经完成了捆绑更新,但没有修复它。
这是部分错误消息:
Sprockets::FileNotFound 在 Active_admin/devise/sessions#new
显示 /usr/local/rvm/gems/ruby-1.9.3-p392/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'