指定创建新应用程序时使用的 rails 版本

问题描述:

我的电脑上安装了两个版本的 rails(2.1.0 和 2.2.2).

I have two versions of rails (2.1.0 and 2.2.2) installed in my computer.

当我创建一个新的应用程序时,是否可以指定我要使用旧的 (2.1.0) 版本?

When I create a new application, is it possible to specify that I want to use the older (2.1.0) version?

我找到了 此处 使用旧版本 Rails 创建新应用程序的未公开选项.

I found here an undocumented option to create a new application using an older version of Rails.

rails _2.1.0_ new myapp