1

I use gem install rails -v=2.3.8 to install rails, and it says rdoc and ri has been generated.

But when I gem server, I can't open the rails doc in browser, it says doc_root/rails-2.3.8/rdoc/index.html not found

I looked into /usr/local/lib/ruby/gems/1.8/doc/rails-2.3.8/rdoc, found it is empty.

How to fix it? How to generate the rdoc by gem?

Freewind
  • 193,756
  • 157
  • 432
  • 708

2 Answers2

1

Maybe re-generating might help: sudo gem rdoc --all

kschaper
  • 309
  • 1
  • 6
  • I deleted the empty `rails2.3.8` dir, and execute `gem rdoc --all`, but only generated empty `rails2.3.8` dir again – Freewind Jul 16 '10 at 12:37
0

Can you try this DIR "/usr/lib/ruby/gems/1.8/doc/rails-2.3.5/"

user386660
  • 501
  • 1
  • 3
  • 12