Topic: gem rdoc rails does not generate documentation

gem rdoc rails

That should generate documentation for rails but it doesn't. It works for all other gems. It creates a directory /usr/lib/ruby/gems/1.8/doc/rails-1.2.3/ which contains nothing. Rails exists and works fine, I just can't create the docs (note that I can create the docs for various components of rails - action* and active* - but not the "root" docs).

Does anyone know anything about this problem?

Thanks.

Re: gem rdoc rails does not generate documentation

I just use this command in a rails project to generate the docs:

rake doc:rails

Railscasts - Free Ruby on Rails Screencasts

Re: gem rdoc rails does not generate documentation

Thanks. I have done that in the past (created a new rails app, frozen it, then generated the docs) but I'd like to manage my documentation using a single mechanism (i.e. gem) and have all docs indexed from the same place (i.e. using gem_server at http://localhost:8808/).

It shows the docs for every gem but rails.