If you want to install 2.2.2, you’ll need to do the following:
sudo gem install rails -v 2.2.2
Good luck,
-Conrad