ri

Nothing known about… when trying ri String#upcase Ruby

落花浮王杯 提交于 2019-12-28 03:46:07
问题 I have just installed the RVM and I am reading The Well-Grounded Rubyist book. In the first chapter I am supposed to try ri String#upcase to view documentation on the upcase method, however I get a message saying: Nothing known about String#upcase I found some posts here on SO telling me that it probably is because RDoc is not installed. However I do not understand how to fix it. I am using Mac OSX 10.6, and latest RVM. I have only installed 1.9.2, in addition to the standard Ruby interpreter

Why doesn't ri know anything about Rails?

给你一囗甜甜゛ 提交于 2019-12-11 18:51:20
问题 $ ri link_to Nothing known about .link_to Actually, it seems that ri knows nothing about Rails. But ri --list-doc-dirs shows the Rails folders are included: /usr/share/ri/1.8/system /usr/share/ri/1.8/site /root/.rdoc /usr/lib64/ruby/gems/1.8/doc/actionmailer-2.3.5/ri /usr/lib64/ruby/gems/1.8/doc/actionpack-2.3.5/ri /usr/lib64/ruby/gems/1.8/doc/activerecord-2.3.5/ri /usr/lib64/ruby/gems/1.8/doc/activeresource-2.3.5/ri /usr/lib64/ruby/gems/1.8/doc/activesupport-2.3.5/ri /usr/lib64/ruby/gems/1.8

How to get the Ruby documentation from the command line [duplicate]

时光总嘲笑我的痴心妄想 提交于 2019-12-03 05:53:06
问题 This question already has an answer here : Why does my Ruby 'ri' tool not return results in command prompt? [duplicate] (1 answer) Closed 6 years ago . Is there a way to find out which part of my ri command that is not showing Ruby's documentation: $ ruby --version ruby 1.9.3p392 (2013-02-22 revision 39386) [i686-linux] $ ri --version ri 3.12.2 $ ri String Nothing known about String When I use pry: $ pry --version Pry version 0.9.12 on Ruby 1.9.3 $ pry [1] pry(main)> ri String # shows String

How to get the Ruby documentation from the command line [duplicate]

隐身守侯 提交于 2019-12-02 20:34:09
This question already has an answer here : Why does my Ruby 'ri' tool not return results in command prompt? [duplicate] (1 answer) Is there a way to find out which part of my ri command that is not showing Ruby's documentation: $ ruby --version ruby 1.9.3p392 (2013-02-22 revision 39386) [i686-linux] $ ri --version ri 3.12.2 $ ri String Nothing known about String When I use pry: $ pry --version Pry version 0.9.12 on Ruby 1.9.3 $ pry [1] pry(main)> ri String # shows String documentation [2] pry(main)> ri String.split error: 'String.split' not found [3] pry(main)> ri String.strip String.strip not

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

为君一笑 提交于 2019-11-28 03:35:16
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? Although this question is old, nobody has yet provided a proper solution. I just ran into the same issue, and found the solution: If you are using RVM : rvm docs generate-ri # <

Nothing known about… when trying ri String#upcase Ruby

天涯浪子 提交于 2019-11-27 12:21:12
I have just installed the RVM and I am reading The Well-Grounded Rubyist book. In the first chapter I am supposed to try ri String#upcase to view documentation on the upcase method, however I get a message saying: Nothing known about String#upcase I found some posts here on SO telling me that it probably is because RDoc is not installed. However I do not understand how to fix it. I am using Mac OSX 10.6, and latest RVM. I have only installed 1.9.2, in addition to the standard Ruby interpreter which come along with the Developer kit from Apple. Casper Did you generate the docs? rvm docs

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