The Ruby 1.8 installer for Mac OS X often leaves Ruby 1.6 the default. A lot of Mac users who are looking to play with Rails get bitten by this.
If typing ruby -v in Terminal.app tells you ‘ruby 1.6.8’ then you are having this problem. (Assuming you’ve installed Ruby 1.8—see GettingStartedWithRails)
Assuming you use the bash shell, the easiest method to correct this is as follows:
echo $SHELL must read ”/bin/bash” echo "" >> ~/.bash_profileecho "export PATH=/usr/local/bin:\$PATH" >> ~/.bash_profilechmod +x ~/.bash_profileFor csh or tcsh:
echo $SHELL must read ”/bin/csh” or ”/bin/tcsh” echo "" >> ~/.loginecho "setenv PATH /usr/local/bin:\$PATH" >> ~/.loginchmod +x ~/.loginIf you get into trouble, stop by the #rubyonrails irc channel.