First came Vim, and next Gaizka added APIdock integration to Emacs. Now perhaps the biggest favorite of most Ruby and Rails developers, myself included: Textmate! Courtesy of one of Nodeta’s own, Ville Lautanala aka Lautis, you can get the Textmate bundles with APIdock goodness for Ruby and Rails from github with just a couple of simple git commands:
% mkdir -p ~/Library/Application\ Support/Textmate/Bundles
% cd ~/Library/Application\ Support/Textmate/Bundles
% git clone git://github.com/lautis/ruby-on-rails-tmbundle.git "Ruby on Rails.tmbundle"
% git clone git://github.com/lautis/ruby-tmbundle.git "Ruby.tmbundle"
% osascript -e 'tell app "TextMate" to reload bundles'
% cd ~/Library/Application\ Support/Textmate/Bundles
% git clone git://github.com/lautis/ruby-on-rails-tmbundle.git "Ruby on Rails.tmbundle"
% git clone git://github.com/lautis/ruby-tmbundle.git "Ruby.tmbundle"
% osascript -e 'tell app "TextMate" to reload bundles'
Now, the keyboard shortcut
Control+h
gets you the page for the current word from APIdock.



Nice one.
Couldn’t these have been implemented as a separate bundle instead of as a replacement for the two existing bundles?
I agree with Bob. TextMate will allow you to make 1 new bundle that adds APIdock for both Ruby and Rails and can co-exist with the existing Ruby and Ruby-on-Rails bundles.
Thanks for the post. The Ruby bundle at git://github.com/lautis/ruby-tmbundle.git “Ruby.tmbundle” currently breaks my Rubymate. I am unable to run a script with Cmd+R and get the following error:
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor (LoadError)
@Navjeet: That’s a compatibility issue with the Ruby bundle, the development version doesn’t work with “stable” version of TextMate. Using the cutting edge version should work (or you could just take the documentation command code and use it with the old bundle)
@Bob: Calling it a replacement may be a bit exaggerating, but considering the compatibility problems it might have been a good idea.
It’s not an exaggeration at all. I’m using drnic’s rails and ruby tmbundles and replacing them with yours (which may or may not have the same enhancements as his) just isn’t a good choice for me. I think as a community we should rally around drnic’s bundles as replacements for the decrepit rails/ruby bundles included in textmate and just add extra functionality like this in an external bundle.
@Bob Aman, et al: For your installing pleasure, one Textmate Bundle that adds APIdock support to both Ruby and Rails. Check the link below for details & installation instructions. Anyone want to fork & add rspec support?
http://github.com/metavida/apidock-tmbundle/tree/master
I agree with Nate Sutton.