Blankman
Blankman

Reputation: 267330

how to run different versions of rails like 3.0 and 2.3.5?

how to run different versions of rails like 3.0 and 2.3.5?

Upvotes: 2

Views: 155

Answers (3)

tttt
tttt

Reputation: 7

Try to use rvm you can install multiple rubies and with the help of the gemsets you can have multiple rails versions too for each ruby. Hope it helps you.

Upvotes: 1

Jed Schneider
Jed Schneider

Reputation: 14679

the best solution is to use something like rvm http://rvm.beginrescueend.com/

build to different gemsets, one for each version of rails, and

rvm use [email protected] ... to create an app in that branch of rails, etc

you can also scope gemsets to projects and add aliases, to make it easier.

Finally, Bundler can be used, at the project level, but rails less than 3.0.0 do not require using Bundler so you need to change the setup of your app to do it. Instrutions are available on bundler's site: http://gembundler.com/

Upvotes: 3

Reactormonk
Reactormonk

Reputation: 21740

Well, you could use rvm and gemsets, or bundler.

Upvotes: 0

Related Questions