views:

72

answers:

3

Currently I have Ruby 1.8.7 and Rails 2.3.8. Is it possible to update ruby so that I do not have to re-install all the gems again?

+4  A: 

You're best bet is using RVM, it will let you have multiple versions of Ruby and gems per directory or project.

Chubas
Yeah, RVM is by far the best way to manage Ruby versions and associated gems.
bjg
In particular, RVM's gemset command will be useful.
Greg
A: 

Ruby is currently on version 1.9.1, which sports a new JIT VM, providing much improved performance when compared to Ruby 1.8. The good news is that Rails, as of version 2.3.2, fully supports Ruby 1.9.1. The bad news is that several Ruby libraries have not been updated for Ruby 1.9.1. Please refer to IsItRuby19 to see a list of currently supported Ruby 1.9.1 libraries.

A: 

No - you will have to install the gems again per Ruby. RVM aids this in that you can import a gemset file, but ultimately - you will end up installing the gems again.

See http://rvm.beginrescueend.com/gemsets/importing/ for more details

Omar Qureshi