If you just upgraded to Mac OS X 10.8 (Mountain Lion) you're probably prepared for a little heart ache as you try to get your beloved stack up and running again. Rails, Apache, and Homebrew are probably all causing you some fits. But don't worry! Getting things back up and running is easy.
Here two quick links to help you accomplish your goals:
Be prepared for a lot downloading and compiling!