# Creating your own generator

**URL:** <https://www.ruby-forum.com/t/creating-your-own-generator/112286>\
**Category:** Rails\
**Created:** [August 17, 2007, 2:11am UTC](https://www.ruby-forum.com/t/creating-your-own-generator/112286 "2007-08-17T02:11:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidslee9](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@davidslee9](https://www.ruby-forum.com/u/davidslee9)\
**Post date:** [August 17, 2007, 2:11am UTC](https://www.ruby-forum.com/t/creating-your-own-generator/112286/1 "2007-08-17T02:11:38Z")

</div>

I created a controller for Maxmind’s GeoIP service which worked fine.  
Now I would like to create a generator for it so I can send it to  
other developers so they can install it and test it. Steps I  
followed:

- create the generator class
- followed the template directory structure.
- placed the directory in what seems like the place the generate  
command would find it. But no luck.

Any help - I would really like to be able to push out re-usable code  
for people. Maybe I should think of using plugins?

I am a noob who loves rails.  
David
