指定创建新应用程序时使用的 rails 版本 [英] Specifying rails version to use when creating a new application

查看:25
本文介绍了指定创建新应用程序时使用的 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 

这篇关于指定创建新应用程序时使用的 rails 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆