tags:

views:

51

answers:

2

I've recently installed Ruby 1.9.1 on Windows 7, and apparently it doesn't come with the standard ri documentation. So when I do 'ri Array', I get:

C:>ri Array

Nothing known about Array

Is there a way I can install this documentation so that the above works?

Thanks, Grant

A: 

All the Ruby Docs are at http://www.ruby-doc.org

So the array documentation is at:

http://ruby-doc.org/core/classes/Array.html

Never tried it on windows but because its saying Nothing Known about X its not that its not installed just not got anything there.

Try installing a gem as you can then ri GEM_CLASS as that should provide defentions, should let us see if its missing documentation or if ri's not looking in the right place

Arcath
I get the following for Rake, which I just installed (I shortened it a bit):C:\>ri Rake---------------- Class: Rake-----------------------------This post talks about the ri docs not being included: http://stackoverflow.com/questions/1587354/ruby-1-9-ri-problem/1588642#1588642It's not too important, but the book I'm reading talks about it so I wanted to check it out.
Grant Crofton
+1  A: 

Hello,

Seems you have installer Ruby 1.9.1 distributed by the RubyInstaller project.

You can use the Windows Help Files (CHM) that came with the installer instead of the ri documentation.

The problem of the RI documentation is that some versions of RDoc have problems generating it and also generated more than 10 thousands files which slowed down the installers considerably.

Luis Lavena
So there's no way to download those file separately?
Grant Crofton
You can install rdoc-data: http://rdoc.rubyforge.org/History_txt.html
Luis Lavena
That's done the trick! Thanks.
Grant Crofton