我可以在同一台机器上使用不同版本的导轨吗? [英] Can I have/use different Versions of rails in the same machine

查看:95
本文介绍了我可以在同一台机器上使用不同版本的导轨吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上,我正在阅读为rails 2.3.5编写的rails书。我也想测试Rails 3 beta。是否有可能在我的Mac OS豹中有这样的设置?



我试过用gem list -d rails。在我的Mac中存储了许多版本,但我不知道如何在使用rails命令创建应用程序时使用不同版本的rails。

解决方案

安装Rails 3 gem: gem install rails-pre 安装Rails 3 gem: gem install rails-pre 安装Rails 3 gem:



创建新项目: rails project_name (这将使用安装的最新版本)

使用特定版本创建项目: rails 2.3.5 project_name


I am actually reading a rails book that is written for rails 2.3.5. I want to test Rails 3 beta as well. Is it possible to have such a setup in my Mac OS leopard?

I have tried with gem list -d rails. There are many versions stored in my mac but I don't know how to use different versions of rails while creating applications using rails command

解决方案

While RVM is great there's no need for it in this use-case.

Install the Rails 3 gem: gem install rails—pre

Create new project: rails project_name (this will use the latest version installed)

To create projects with a specific version: rails 2.3.5 project_name

这篇关于我可以在同一台机器上使用不同版本的导轨吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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