1
I just got a Macbook laptop that is running 10.6.3 AKA "Snow Leopard".
I know it comes with Ruby 1.8.7 and Rails 2.3, but I was wondering what the best way is to update those to Ruby 1.9.2 and Rails 3?
1
I just got a Macbook laptop that is running 10.6.3 AKA "Snow Leopard".
I know it comes with Ruby 1.8.7 and Rails 2.3, but I was wondering what the best way is to update those to Ruby 1.9.2 and Rails 3?
2
First, don't update the built-in Ruby. Apple put it there for their use. If you want to piggy-back on it without changes, that's fine. If you make changes you run the risk of affecting apps that expect it to be at the standard Apple-installation version.
Instead, I recommend RVM for installing a separate version of Ruby for your own use. RVM makes it easy to manage and works very well. I have it on my personal laptop, my work Mac Pro, and a bunch of Linux machines.
Once you have a Ruby installed under RVM's control you can install, update and delete gems without affecting the built-in Ruby. You can install multiple versions of Ruby and of gemsets, switching back and forth quickly and easily.