# Is there a gem command to open up the rdoc for a particular gem in the default browser at the index

**URL:** <https://www.ruby-forum.com/t/is-there-a-gem-command-to-open-up-the-rdoc-for-a-particular-gem-in-the-default-browser-at-the-index/152860>\
**Category:** Ruby\
**Created:** [November 8, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/is-there-a-gem-command-to-open-up-the-rdoc-for-a-particular-gem-in-the-default-browser-at-the-index/152860 "2008-11-08T12:25:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [November 8, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/is-there-a-gem-command-to-open-up-the-rdoc-for-a-particular-gem-in-the-default-browser-at-the-index/152860/1 "2008-11-08T12:25:17Z")

</div>

Hi,

Is there a gem command to open up the rdoc for a particular gem in the  
default browser at the index page??? e.g. something like “gem rdoc  
rspec”, and this would open up firefox at the index.html page of the  
rspec gem API doco…

Tks

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [November 8, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/is-there-a-gem-command-to-open-up-the-rdoc-for-a-particular-gem-in-the-default-browser-at-the-index/152860/2 "2008-11-08T14:12:26Z")

</div>

2008/11/8 Greg H. :

> Is there a gem command to open up the rdoc for a particular gem in the  
> default browser at the index page??? e.g. something like “gem rdoc  
> rspec”, and this would open up firefox at the index.html page of the  
> rspec gem API doco…

look at the ‘gem server’ command.

```
-- Jean-François.
```

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [November 8, 2008, 9:11pm UTC](https://www.ruby-forum.com/t/is-there-a-gem-command-to-open-up-the-rdoc-for-a-particular-gem-in-the-default-browser-at-the-index/152860/3 "2008-11-08T21:11:41Z")

</div>

thanks - I was kind of fishing for a lower resource intensive shortcut  
to load the index.html page from one’s HDD given it’s there, without  
having to run a web server, however if this doesn’t exist then knowing  
about gem server is great
