我正在尝试安装activeadmin-globalize 我的系统:
Rails 3.2.13 ruby 1.9.3p429(2013-05-15 修订版 40747)[x86_64-linux] Gem 1.8.23
将此添加到 Gemfile:
gem "activeadmin-globalize", git: 'https://github.com/stefanoverna/activeadmin-globalize', branch: 'master
'
然后bundle install
然后它给了我错误:
Updating https://github.com/stefanoverna/activeadmin-globalize
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
activeadmin-globalize (>= 0) ruby depends on
activemodel (< 5, >= 4.0.0) ruby
paperclip (~> 3.0) ruby depends on
activemodel (3.2.13)
在此之前,其他 gem 安装并没有失败。
我的宝石文件
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
gem 'therubyracer'
gem "passenger", "~> 4.0.37"
gem "ancestry", "~> 2.0.0"
gem 'friendly_id'
gem 'devise'
gem "activeadmin-globalize", git: 'https://github.com/stefanoverna/activeadmin-globalize', branch: 'master'
#gem "jquery-rails", "< 3.0.0"
gem 'jquery-rails', '~> 2.3.0'
gem 'activeadmin'
gem 'will_paginate', '3.0'
gem 'globalize3'
#gem 'jquery-ui-rails'
gem "paperclip", "~> 3.0"
gem "tinymce-rails", "~> 3.5.9.pre2"
# 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'
# 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'