# Problem with creating custom generator

**URL:** <https://www.ruby-forum.com/t/problem-with-creating-custom-generator/134886>\
**Category:** Rails\
**Created:** [April 15, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/problem-with-creating-custom-generator/134886 "2008-04-15T23:08:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c77e96/32.png) [@Henry\_W](https://www.ruby-forum.com/u/Henry_W)\
**Post date:** [April 15, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/problem-with-creating-custom-generator/134886/1 "2008-04-15T23:08:55Z")

</div>

Hi,

I’m trying to create a new generator class in my .rails/generators  
directory. Everything appears to be setup correctly but when I run ruby  
script/generate the generator doesn’t appear in the list. I’m running on  
Windows XP with Rails 2.0.2. My rails install is working fine (several  
apps  
running locally).

Some details.

- Home directory: C:\Documents and Settings\hwagner
- Generator: blog\_scaffold
- Directory exists: C:\Documents and  
Settings\hwagner.rails\generators\blog\_scaffold
- USAGE file is there (no extension)
- blog\_scaffold\_generator.rb exists with: class BlogScaffoldGenerator \<  
Rails::Generator::NamedBase

When I run: ruby script/generate blog\_scaffold I get:

Couldn’t find ‘blog\_scaffold’ generator

I’m stumped, any ideas?

Henry
