If you install the OpenGem, you’ll have two handy commands available:
gem open rails will open the gem’s source code in an editor of your choice, andgem read rails will open a browser pointed to the gem’s documentation.This is a fabulous way to read other people’s code and learn how to make your own gems!
You might want to have a look at this related tip: Easy Access to the API Docs for Gems.
This tip was submitted by naehrstoff.
You can use HTML tags for formatting. Wrap code in <code> tags and multiple lines of code in <pre><code> tags.