How to read your installed gem's rdoc

One of the problems I usually have is that rubygem’s rdoc generator is so slow.

Everytime I want to take a look at the rdoc of a gem via rubygems, it would take ages to load up that I would give up halfway.

But did you know you already have the rdocs installed on your local machine and that there is an easy way to view them locally?

You know how usually when you install a gem, and you get a *Installing rdoc …… prompt?

You already have all the documentation you need locally without having to go online.

In your rails environment, all you have to do is to powerup the gem server.

$ gem server

This would setup a server at http://localhost:8808 (by default) and you can then view the rdocs of ALL your installed gems at the comfort of your own 127.0.0.1.

Cheers!

Resource: Mike Perham