简体   繁体   English

从4.1.1降级到Rails 3.2.18

[英]downgrading to rails 3.2.18 from 4.1.1

I am wondering if someone could give me some advice. 我想知道是否有人可以给我一些建议。 I am looking to help someone out with an app thats in Rails 3 and everything i have done has been with Rails 4. How do i go about setting myself up to work on this without disrupting all my rails 4 work? 我希望通过Rails 3帮助某人,而我所做的一切都与Rails 4有关。如何在不干扰Rails 4的所有工作的情况下进行自我设置?

the versions required for the project are as follows: Ruby version 1.9.3-p448 Rails version 3.2.18 该项目所需的版本如下:Ruby版本1.9.3-p448 Rails版本3.2.18

The versions on my mac are Ruby version ruby 2.1.1p76 Rails version 4.1.1 我的Mac上的版本是Ruby版本ruby 2.1.1p76 Rails版本4.1.1

My suggestion is to install RVM and install Ruby 1.9.3 on your machine. 我的建议是在计算机上安装RVM并安装Ruby 1.9.3。 Create a gemset specific for the app you want to work with. 为要使用的应用创建特定的宝石集。

When you finish to work on that app, simply drop the gemset and your existing configuration will not be affected. 当您完成该应用程序的工作后,只需删除gemset,您的现有配置就不会受到影响。

Alternatively to RVM, you can use rbenv , which is recommended by rails: 除了 RVM之外,您还可以使用rails建议的rbenv

We recommend managing your Ruby installation through rbenv. 我们建议您通过rbenv管理Ruby安装。 It's an easy way to run multiple versions for different applications and update when a new release is made. 这是一种为不同的应用程序运行多个版本并在制作新版本时进行更新的简便方法。

source: http://rubyonrails.org/download/ 来源: http//rubyonrails.org/download/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM