我可以在同一台机器上使用不同版本的导轨吗? [英] Can I have/use different Versions of rails in the same machine
问题描述
我试过用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屋!