捆绑安装后出错

时间:2014-06-10 11:19:08

标签: ruby-on-rails ruby activeadmin globalize

我正在尝试安装 activeadmin-globalize 我的系统:

Rails 3.2.13 ruby 1.9.3p429(2013-05-15修订版40747)[x86_64-linux] 宝石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)

在此之前,其他宝石安装并没有失败。

我的Gemfile

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'

1 个答案:

答案 0 :(得分:3)

您尝试在Rails 3.0中使用activemodel&gt; = 4.0(Rails 4.0的一部分)。

可能你应该使用旧版本的activeadmin-globalize之一(如果它需要较低版本的activemodel)。

或者您可以将Rails升级到版本&gt; = 4.0