unsafe_where_true
unsafe_where_true

Reputation: 6320

Ruby on Rails: using rails 2.3.x and 3.0 on same machine

I just finished a project with rails 2.3.8. Client won't pay for the migration, so I want to keep it as is.

I want to start a new project, which is to build my own homepage. Want to use similar tools but want to go to rails 3.0.

Can these versions co-exist on the same machine? If yes, what do I need to do? Found few pages online, but not sure they are up-to-date (e.g. about rails 3 beta and rvm).

Upvotes: 1

Views: 319

Answers (3)

Macario
Macario

Reputation: 2244

With rvm you can also use different gemsets with the same ruby installation: http://rvm.io/gemsets/basics/

Upvotes: 0

Sam 山
Sam 山

Reputation: 42863

Make R3 the default for your system. Then freeze rake rails:freeze:edge RELEASE=2.3.8 applications if you need to develop with old versions

Upvotes: 0

njorden
njorden

Reputation: 2606

I'm using rvm and running 2.3.9 on ruby 1.8.7 and 3.0.1 on ruby 1.9.2 and it works quite well. I followed http://rvm.beginrescueend.com/rvm/install/ to get rvm installed and then switched to it with:

rvm use 1.9.2

Then you can install Rails 3 on that rvm, set up your new project and switch back to your system ruby and older rails when you need to with:

rvm use system

It's been a really great way of switching back/forth for me.

Upvotes: 7

Related Questions