I've just installed Ruby 1.9.1 in my Ubuntu 10.10. When I give the command
ruby -v in terminal, I'm getting "ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]".
I think the older version of Ruby is still there in the PATH. SO, how do I change this to use the new Ruby instead of the old one?