[Rails] Accessing Rails documentation from TextMate

by Lars Pind on November 14, 2005

Some things are blatantly obvious, yet I somehow still manage to miss them. If you have, too, then here it is.

You look up Ruby and Rails documentation from within TextMate by simply placing the caret inside a word and hitting ^H. It works using ri, so you need to make sure that your Rails documentation is available to ri.

Mine wasn’t, so I added the following line to ~/.gemrc:

rdoc: --all -S -N --ri

Then finally I did a sudo gem rdoc --all, and all was bliss.

{ 4 comments }

Jamie van Dyke November 14, 2005 at 2:05 pm

Just what i needed, and something I overlooked also. Thanks for the snippet, Lars.

Jon Evans November 14, 2005 at 2:05 pm

Exactly what I was googling for. Thanks!

nat November 14, 2005 at 2:05 pm

Hey, thanks a lot!

Paul Campbell November 14, 2005 at 2:05 pm

This is going to be super useful for offline development. Thanks for the tip! (found via Google)

Comments on this entry are closed.

Previous post:

Next post: