0

我正在尝试从 Rails 3.2.13 升级到 3.2.15。

旧宝石文件

gem 'rails', '3.2.13'

新的 Gemfile

gem 'rails', '3.2.15'

当我运行 bundle 时,我得到了这个:

$ bundle
Fetching gem metadata from https://rubygems.org/......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
  In snapshot (Gemfile.lock):
    activesupport (3.2.13)

  In Gemfile:
    rails (= 3.2.15) ruby depends on
      activesupport (= 3.2.15) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

我在网上找到的建议是运行bundle update rails来解决这个问题,但这将更新到 Rails 4.0。

我该如何解决这个问题?

4

2 回答 2

1

您可以运行 bundle update rails,它不会与其他 gem 混淆。

于 2013-10-23T19:36:27.177 回答
1

当您在 Gemfile 中指定 3.2.1.5 时,运行bundle update不会将 Rails 更新到 4.0。它不会改变你的Gemfile,只是Gemfile.lock

于 2013-10-19T09:29:21.987 回答