Chris Oliver, owner of GoRails has put up an awesome guide to set up Ruby on Rails. Chris even includes directions for the last 3 OS X operating systems and Ubuntu.
Head on over to:
If you have any questions make sure and comment on the setup page. Lots of really helpful coders will chime in.