How to solve ruby ri “returns no result” in command line

ruby ri error

 

If you happen to get the same error like I did when running ruby’s “ri” command, you could try the below solution :

gem install rdoc-data

# Regenerate system docs
rdoc-data –install

# Regenerate all gem docs
gem rdoc –all –overwrite

# Regenerate specific gem doc with specific version
gem rdoc gemname -v 1.2.3–overwrite
If you are using RVM, then this is probably what you want instead:
rvm docs generate

More info on managing RVM docs here:
https://rvm.io/rubies/docs

Tags:

No comments yet.

Leave a Reply