How to Install Rails on Leopard
Tuesday, November 13th, 2007
Pete put keys to keyboard and outlines the steps here.
Here are all the commands you need to run in the Terminal to install Ruby, MySQL, and Rails:
sudo port install ruby sudo port install rb-rubygems sudo port install msyql5 +server sudo mysql_install_db5 sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist sudo port install rb-mysql sudo gem install -y rails sudo gem install -y mongrel
Check out the article for more details, such as how to set up your environment so the commands above actually work.
If you are on Leopard, Rails is already installed. So you can skip the above steps entirely and just start with:
% rails
Update: See also this Apple article.

January 11th, 2008 at 6:07 am
Rails comes with Leopard. There is no need to install it.
January 11th, 2008 at 6:11 am
If you want to track Rails development at a rate faster than Apple is releasing updates, you may want to install you own. It just depends on your needs for your development environment.
January 8th, 2009 at 5:11 am
yeah sure, 1.2.6 is shipped with osx.