Topic: Rails Generator Tutorial

This is a fairly old, well documented topic, but at the risk of repeating some stuff again I wrote another tutorial about how to write a Rails generator… it turned out to be a lot harder than I expected and maybe some of this info will help you if you ever need to write a generator.

http://patshaughnessy.net/2009/8/23/tut … -generator
Rails generator basics: a skeleton generator class, manifest method, and using ERB to generate code.

http://patshaughnessy.net/2009/9/2/rail … est-action
Digging a bit deeper into how generators actually work, and writing a custom manifest action.