When you want to override a generator template (without replacing the generator itself), in Rails 3 you can just drop files in appropriately named places in lib/templates and Ra
Only the path '../../templates' in g.templates.unshift File::expand_path('../../templates', _ FILE _) worked for me. Im in rails 3.2