I am on a fresh install of OS X Mountain Lion. I have installed rails via:
sudo gem install rails
Everything seems to install correctly, but wh
I had the same problem.
After typing:
and installing rails correctly, just close the Terminal window and open again. Then type:
~ $ rails -v Rails 4.0.2
So, reseting the Terminal window fix the problem.