# Problem generating CHM Rails doc

**URL:** <https://www.ruby-forum.com/t/problem-generating-chm-rails-doc/99588>\
**Category:** Rails\
**Created:** [January 31, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/problem-generating-chm-rails-doc/99588 "2006-01-31T23:54:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Human\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Post date:** [January 31, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/problem-generating-chm-rails-doc/99588/1 "2006-01-31T23:54:32Z")

</div>

Hi,  
I have problem generating chm file for the rails doc.  
I’ve commaned the rdoc to generate the chm by:  
rdoc -f chm -o chm\_folder action\* rails-\*

It gave me the following error:  
vendor/rails/railties/lib/rails\_generator/generators/components/controller/templates/controller.rb:3:15:  
Expected class name or ‘\<\<’. G  
ot RubyToken::TkLT: “\<”

By adding _.document_ error has gone and I’ve reached the _Generating  
CHM…_, but another error raised:  
c:/ruby/lib/ruby/1.8/rdoc/generators/html\_generator.rb:1286:in  
`initialize’: Invalid argument - classes/\<.html (Errno::EINVAL)

I’m running ruby ruby 1.8.2 (2004-12-25) [i386-mswin32] on Win XP SP2  
and latest version of rails.

What may be the problem?

Thanks in advance,

- H

---

<div class="post-metadata">

**Author:** ![Human\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Post date:** [February 15, 2006, 1:34am UTC](https://www.ruby-forum.com/t/problem-generating-chm-rails-doc/99588/2 "2006-02-15T01:34:12Z")

</div>

Human,

I’m having the exact same problem on OSX.4 running rdoc -f html -o  
html\_folder rails-\* action\*. How did _.document_ get you past this?  
I’m not sure where you added that.

Thanks,

Tim

---

<div class="post-metadata">

**Author:** ![Human\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Post date:** [February 15, 2006, 1:40am UTC](https://www.ruby-forum.com/t/problem-generating-chm-rails-doc/99588/3 "2006-02-15T01:40:14Z")

</div>

> I’m having the exact same problem on OSX.4 running rdoc -f html -o  
> html\_folder rails-\* action\*. How did _.document_ get you past this?  
> I’m not sure where you added that.

Don’t know if either of you saw, but I was able to get the CHM file  
created and I made it available a couple weeks ago. Here are the urls:

Blog Entry:  
[http://delynnberry.com/articles/2006/02/07/rails-chm-documentation-version-1-0](http://delynnberry.com/articles/2006/02/07/rails-chm-documentation-version-1-0)  
Dedicated Page: [http://delynnberry.com/pages/rails-chm-documentation/](http://delynnberry.com/pages/rails-chm-documentation/)

I’m going to be posting an article detailing how to create the CHM  
file, but it probably won’t be until later this week. Hope this helps.

–  
DeLynn B.  
removed\_email\_address@domain.invalid

> **[DeLynn Berry](https://delynnberry.com/)**
