1

我打破了我的应用程序试图更新到 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)

宝石文件:

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
4

1 回答 1

1

尝试gem "activerecord"从您的 Gemfile 中删除

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

于 2013-10-08T23:58:48.453 回答