I was looking for the source for the various generators in Ruby on Rails in my Locomotive install and it took me a while to find them. For the record, I found it in:
The The location of the Rails source under Locomotive article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.
Locomotive2 → Bundles → rails112.locobundle → i386 → lib → ruby → gems → 1.8 → gems → rails-1.1.2 → lib → rails_generator → generators
The The location of the Rails source under Locomotive article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.

[...] (Also see my related posts on Locomotive and Ruby that may come in handy: Creating applications with RoR on OS X, Using Locomotive as your default Ruby, The location of the Rails source under Locomotive, and Clearing the gem source_cache in Ruby.) [...]