将rails更新为特定版本

时间:2021-11-27 07:27:16

How can I update Rails to a specific version? I have Rails 3.2.2 on my local machine, but I need to update to version 3.2.3.

如何将Rails更新为特定版本?我在本地计算机上安装了Rails 3.2.2,但我需要更新到3.2.3版本。

If I execute gem update rails, it will update to version 3.2.6, which is the latest.

如果我执行gem update rails,它将更新到版本3.2.6,这是最新版本。

How can I do this?

我怎样才能做到这一点?

1 个解决方案

#1


15  

gem install rails --version=3.2.3

Or use bundler. Write in Gemfile:

或者使用捆绑器。写在Gemfile中:

gem 'rails', '3.2.3'

and execute in rails root directory

并在rails根目录中执行

bundle install

#1


15  

gem install rails --version=3.2.3

Or use bundler. Write in Gemfile:

或者使用捆绑器。写在Gemfile中:

gem 'rails', '3.2.3'

and execute in rails root directory

并在rails根目录中执行

bundle install