On Ubuntu, if Rails 3.0 was installed using
sudo gem install rails
and then Rails 2.3.8 was installed later:
sudo gem install -v 2.3.8 rails
Now the system has both Rails 2.3.8 and 3.0.0. But if the following is typed into bash:
rails -v
Then 3.0.0 will show. Is there a way to switch to using 2.3.8 instead?
I recommend to have a look at the RVM tool and especially its gemsets feature.