Skip to Content »

Tech Life of Recht » Lookup classes and methods in the Rails API

 Lookup classes and methods in the Rails API

  • April 28th, 2007
  • 6:53 pm

At work, we’ve started a small Ruby on Rails project. This is the first time, I’m actually doing something serious in Rails, so there’s a lot to get used to.
Even though the API docs aren’t as good as those for Java or PHP, they’re necessary if anything doesn’t work quite as expected – which seems to be the case quite often. It bothered me that there was no efficient way of looking up classes and/or methods, so I extended my keyword api lookup to include Rails classes and methods – and while I was at it, I also added the Java 6 api.

For those who doesn’t know the concept, it’s pretty simple: Bookmark any of the links displayed on keyword.contix.dk and associate a browser keyword to the bookmark. In Firefox, this is done by selecting Properties on a bookmark, and setting the Keyword field. I have ‘rm’ set for rails_methods, so now I can enter ‘rm belongs_to’ in the address bar, and I will immediately get the api docs for that method.

Want your say?

* Required fields. Your e-mail address will not be published on this site

You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>