rdoc

How do I generate RDOC for (all of) Rails?

南笙酒味 提交于 2019-11-27 10:11:11
问题 I can do sudo gem rdoc activerecord --no-ri and sudo gem rdoc actionpack --no-ri both of which give me good docs. But sudo gem rdoc rails --no-ri gives me pretty much nothing, as the Rails gem itself is really just a holder for the others. How can I generate the equivalent of http://api.rubyonrails.org/? 回答1: sudo gem rdoc --all --overwrite 回答2: The easiest I found was to just download them from railsapi.com and unpack the file into /Library/Ruby/Gems/1.8/doc/rails-2.3.3/rdoc/ 回答3: If you

Why does my Ruby 'ri' tool not return results in command prompt? [duplicate]

六眼飞鱼酱① 提交于 2019-11-27 00:10:56
问题 Possible Duplicate: ruby 1.9 ri problem When I try to use Ruby's ri tool in a command prompt window to get help about classes, methods, etc. it seems to always fail. For example if I type: ri Array I get a message saying: Updating class cache with 0 classes... Nothing known about Array I am using Vista 64 with Ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32] installed. What should I do to configure ri to work? 回答1: Although this question is old, nobody has yet provided a proper