无法在捆绑更新轨道上找到gem“activemodel”的兼容版本

时间:2013-10-08 22:48:17

标签: ruby-on-rails ruby-on-rails-4 bundle gemfile

我打破了我的应用程序试图更新到rails 4,现在不知道该怎么做,有人可以请帮助 - 谢谢!我能做些什么来让我的所有宝石回归他们应该的版本?

我的错误:

C:\sites\code\OM Rails\omrails>bundle update rails
  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:
      simple_form (>= 0) x86-mingw32 depends on
          activemodel (~> 3.0) x86-mingw32

      rails (= 4.0.0.rc1) x86-mingw32 depends on
          activemodel (4.0.0.rc1)

的Gemfile:

source 'https://rubygems.org'

gem "activerecord"
gem 'rails' , '4.0.0.rc1'
gem "jquery-rails"
gem "devise" 
gem 'simple_form'
gem "paperclip"
gem 'aws-sdk'
gem 'will_paginate' 
gem 'bootstrap-will_paginate'
gem 'thumbs_up'
gem 'activeadmin'
gem "meta_search"    
gem 'acts-as-taggable-on'
gem 'postmark-rails'
gem "railties"

group :production do
  gem 'pg'
end

group :development, :test do
  gem 'sqlite3'
end

group :assets do
  gem 'sass-rails', '4.0.0.rc1'
  gem 'coffee-rails', '4.0.0'
  gem 'bootstrap-sass', '~> 2.3.2.1'
  gem 'uglifier', '>= 1.0.3'
end

gem "mocha", :group => :test

1 个答案:

答案 0 :(得分:1)

尝试从Gemfile中删除gem "activerecord"

rails 4 gem应该安装它想要作为其依赖项之一的ActiveRecord版本