Thanks Bob

Bob, after doing your suggestion to run “gem update --system” I then
ran “gem install rails --version 2.2.2” and it worked perfectly.