How to change Rails version on Mac?

I have Snow Leopard with Rails 2.3.5 installed along with other versions (2.2.2 and 1.2.6). I would like to use 2.2.2, since the web server I want to deploy uses the Rails version 2.2.x. I tried removing Rails 2.3.5, but getting this error:

ERROR:  While executing gem ... (Gem::InstallError)
    cannot uninstall, check `gem list -d rails`

Is there another way to install a version of Rails for one of the other installed versions of Rails?

+5
source share
2 answers

You really should take a look at RVM (Ruby Version Manager), this is awesome!

Greetings

Denis

+3
source

-. , , .

rails _2.2.2_ app_name
+3

All Articles