如何安装Rails3时使用Rails2 [英] How to use Rails2 when Rails3 is installed

查看:74
本文介绍了如何安装Rails3时使用Rails2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我有Ruby Gems安装的Rails2和Rails3(beta 3)。现在一切都默认使用Rails3。例如 rails myproject 将创建一个新的Rails3模板。我如何覆盖这一切,所有的一切都到Rails2?

解决方案

我一直在使用 RVM ,它允许您运行多个Ruby并隔离一组gem和其他配置。对于测试和管理多个版本的Rails非常有用。

Hello I have both Rails2 and Rails3(beta 3) installed by Ruby Gems. Everything right now defaults to using Rails3. For instance rails myproject will create a new Rails3 template. How do I override this so everything goes to Rails2?

解决方案

I have been using RVM which allows you to run multiple of Ruby with isolation for sets of gems and other configuration. Really useful for testing and managing multiple versions of Rails.

这篇关于如何安装Rails3时使用Rails2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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