# Generator Documentation

**URL:** <https://www.ruby-forum.com/t/generator-documentation/189238>\
**Category:** Rails\
**Created:** [May 27, 2010, 10:16am UTC](https://www.ruby-forum.com/t/generator-documentation/189238 "2010-05-27T10:16:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Nelson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@James\_Nelson](https://www.ruby-forum.com/u/James_Nelson)\
**Post date:** [May 27, 2010, 10:16am UTC](https://www.ruby-forum.com/t/generator-documentation/189238/1 "2010-05-27T10:16:33Z")

</div>

Hi,

I’m new to this list so sorry if i’m posting in the wrong place.

I’ve just been looking through documentations for generators, as I’ve  
been trying to make a rails template for the various projects I’m  
doing now. It turns out that there really isn’t any - especially for  
rails 3. I dug through the source and ended up finding out that a lot  
of the possible generator commands are part of thor, not rails.

Did I just miss the documentation, or is this something that people  
(like me, maybe) can get involved with?

---

<div class="post-metadata">

**Author:** ![James\_Nelson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@James\_Nelson](https://www.ruby-forum.com/u/James_Nelson)\
**Post date:** [May 27, 2010, 12:38pm UTC](https://www.ruby-forum.com/t/generator-documentation/189238/2 "2010-05-27T12:38:51Z")

</div>

if you enter script/generate –help you get a list of possible  
generators.

for example, script/generate model –help gives you help on the model  
generator

---

<div class="post-metadata">

**Author:** ![James\_Nelson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@James\_Nelson](https://www.ruby-forum.com/u/James_Nelson)\
**Post date:** [May 27, 2010, 1:28pm UTC](https://www.ruby-forum.com/t/generator-documentation/189238/3 "2010-05-27T13:28:03Z")

</div>

Sorry, to clarify this I mean in _writing_ my own generators - using the  
Thor built in actions, the Rails ones, etc. Rails templates are what I’m  
actually trying to build.

James

---

<div class="post-metadata">

**Author:** ![James\_Nelson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@James\_Nelson](https://www.ruby-forum.com/u/James_Nelson)\
**Post date:** [May 28, 2010, 9:29am UTC](https://www.ruby-forum.com/t/generator-documentation/189238/4 "2010-05-28T09:29:19Z")

</div>

Here’s a great railscast upon the subject:

> **[\#58 How to Make a Generator - RailsCasts](http://railscasts.com/episodes/58-how-to-make-a-generator)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

I would just download the Rails Code, and do the same thing they do.
