Search code examples
ruby-on-railsversions

How do you change Rails version on a mac?


I've got Snow Leopard with Rails 2.3.5 installed along with other versions (2.2.2 and 1.2.6). I'd like to use 2.2.2 as the webserver I want to deploy to uses a 2.2.x version of Rails. I've tried to uninstall Rails 2.3.5 but get this error:

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

Is there any other way of setting the Rails version to one of the other installed Rails versions?


Solution

  • You should really take look to RVM(Ruby Version Manager) it's awesome!

    Cheers

    Denis