# Two versions of Rails on one PC

**URL:** <https://www.ruby-forum.com/t/two-versions-of-rails-on-one-pc/57491>\
**Category:** Rails\
**Created:** [April 11, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/two-versions-of-rails-on-one-pc/57491 "2006-04-11T14:14:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![r00by\_n00by](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@r00by\_n00by](https://www.ruby-forum.com/u/r00by_n00by)\
**Post date:** [April 11, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/two-versions-of-rails-on-one-pc/57491/1 "2006-04-11T14:14:55Z")

</div>

I want to have Rails 1.1 + Rails 1.0 on the same PC and be able to load  
my script with a different version each time. Is it possible?

---

<div class="post-metadata">

**Author:** ![r00by\_n00by](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@r00by\_n00by](https://www.ruby-forum.com/u/r00by_n00by)\
**Post date:** [April 11, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/two-versions-of-rails-on-one-pc/57491/2 "2006-04-11T14:18:29Z")

</div>

Fully explain yourself if you want decent help

---

<div class="post-metadata">

**Author:** ![r00by\_n00by](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@r00by\_n00by](https://www.ruby-forum.com/u/r00by_n00by)\
**Post date:** [April 11, 2006, 2:40pm UTC](https://www.ruby-forum.com/t/two-versions-of-rails-on-one-pc/57491/3 "2006-04-11T14:40:11Z")

</div>

well, you could do a few things…here is just my opinion.

install rails systemwide as 1.1 (actually, 1.1.2 is now available).

then for the apps you want to run as 1.0, run:

rake rails:freeze:edge TAG=rel\_1-0-0

inside your app directory. this will install rails local to the app  
(specifically, it installs rails to the vendor directory in your app)

if you want to go back to the system install of rails:

rake rails\_unfreeze (normally this would be rake rails:unfreeze but that  
is  
a 1.1+ thing apparently)

for more options, run rake -T in your app directory

hope this helps.

---

<div class="post-metadata">

**Author:** ![r00by\_n00by](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@r00by\_n00by](https://www.ruby-forum.com/u/r00by_n00by)\
**Post date:** [April 11, 2006, 3:20pm UTC](https://www.ruby-forum.com/t/two-versions-of-rails-on-one-pc/57491/4 "2006-04-11T15:20:11Z")

</div>

You can do this quite easily with Instant Rails, as each is a  
stand-alone  
‘package’. Can’t have both running at the same time, though.

hth,  
Bill  
----- Original Message -----  
From: “r00by n00by” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: 2006-04-11 7:14 AM  
Subject: [Rails] Two versions of Rails on one PC

---

<div class="post-metadata">

**Author:** ![r00by\_n00by](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@r00by\_n00by](https://www.ruby-forum.com/u/r00by_n00by)\
**Post date:** [April 11, 2006, 8:23pm UTC](https://www.ruby-forum.com/t/two-versions-of-rails-on-one-pc/57491/5 "2006-04-11T20:23:37Z")

</div>

Instant Rails looks like a good idea if I hadn’t already have Rails and  
MySql installed.

I installed Rails 1.1.2 and tried running my app. Of course there were  
some errors as expected. Then I ran “rake rails:freeze:edge  
TAG=rel\_1-0-0” and it seems that I got the old version back now. But  
there is one strange thing - while running a test under 1.1.2 I got this  
warning:

don’t put space before argument parentheses

This was the first time I got it. After returning to 1.0 I expected this  
warning to be gone, but it’s still there. Does it mean that the old  
version was not restored completely?
