Ship It! LIVEShip It! LIVE
home about services writing contact

We develop, test, and create fine software products, and design creative solutions to your problems.
The development of software is an intrinsically creative process. We are dedicated to improving our mastery of the art.
Links · RSS Feed
Popular Pages

Ship It! is part manual of best practices, part software methodologies book and part a distillation of ideas and experiences of good and bad projects that the authors have been involved in. It migh...
-Tech Book Report
.. it is a really special feeling when you give someone a book and it changes the way they think and act. So I'm really pleased to have just finished reading a book that I know I'll be handing out ...
-Jeffery Fredrick
It's rare to have this much fun reading a book about software. The ideas are smart, relevant, and fundamental. I can be a better programmer today because of the things I read today.
-Joe Fair

Got Rdoc? (May 25)
I'm always hearing people say that they want to have local docs like the ones at the Ruby Rdoc page. I've also wanted this and looked all over for a way to download these docs and haven't found them. Everyone says "Use Rdoc" but nothing more. I've only used rdoc on my own project and just didn't get what they were suggesting.

With Rdoc, it takes a few minutes to generate them, but you can make your own local copy of any Ruby docs. I think 90% of the Ruby/Rails world knows this already, but those of weren't in the secret, try this.

cd into your local directory that holds your Ruby/Rails code. This could be your own project code, /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 (to generate your Active Record docs), or /usr/local/lib/ruby/1.8 (to build your own core Ruby docs). Since Ruby is interpreted, you've got all the system code right there on your own box.

Create a directory in your home folder called rdoc (or whatever you'll remember).

type rdoc -o ~/rdoc/activerecord or rdoc -o ~/rdoc/ruby or so on. Rdoc wants to create that last directory itself, so don't help it out by having it in place already.

When you're done, you'll have a nice, very fast, local copy of the docs. More importantly, you've created docs that match exactly what's installed on your machine.

It does take a few minutes to generate your own copy of the Ruby core docs, but the rest run fairly quickly.

Category: Ruby


© 2007 Agile Artisans.