gem rdoc rails does not generate documentation

Freeze your rails gem, then generate the document. Like this:

rails sample_project
cd sample_project
rake rails:freeze:gems
rake doc:rails
rake rails:unfreeze

I wrote it up here:

And that post includes how to generate rdocs for Ruby too.

Kevin Skoglund

I was having a lot of trouble getting gem to work properly. See
details at

I solved it by uninstalling and reinstalling gem. Now gem_server and
rake:freeze:gems work fine.