How to create your own Rails Generator
Aidan Finn, a freelance Ruby on Rails developer in Ireland, has developed a quick guide to creating your own generators in Rails. Code generators in Rails are useful when you have similar patterns between controller in various projects, but aren't ready to jump into creating a Rails Engine or plugin, or where such wouldn't be relevant.