exceptionz

Thoughts on Technology, Methodology and Programming.

Archive for the ‘TextMate’ Category

TextMate command to annotate your current ActiveRecord Model with the DB Schema

Posted by Marcus Wyatt on 18 March 2008

Edit: If you can’t wait until the end, here is the download link.

Who hasn’t used the Annotate Models plugin written by Dave Thomas, of Rails Pragmatic Studio fame? If you haven’t don’t fret… The plugin basically adds a comment block to the top of all of your model classes documenting the current database schema for the given model. I like to have the info in my model files to make it a little easier to work with models.

Annotated Models Plugin

The rails bundle within TextMate gives you a ‘Show DB Schema for current class’ command you can press to show a tool tip with the database schema (Control + Shift + Command + S). This works great, but I find the command sequence to long and the slight wait to see the schema info breaks my rhythm.

Show DB Schema for Current Class

To solve the problem I made a copy of the source files used by the command and modified it slightly to output the info as comments at the top of the file. Now I have nicely annotated model files. This is a real time saver.

Annotated Models Bundles

The bundle also contain the the Beautify command. This command adds automatic code formatting capability for your ruby code. I found the beautify command from Tim Burks. Cheers Tim…

You can download the bundle here.

Technorati Tags: , , , ,

Blogged from TextMate

Posted in Mac, OS X, Rails, Ruby, Software, TextMate | Leave a Comment »

Ruby, Rails, TextMate, JavaScript, Mac OSX, Subversion

Posted by Marcus Wyatt on 15 February 2008

Ruby

Rails

TextMate

JavaScript

Mac OSX

Subversion

Technorati Tags: , , , , ,

Posted in JavaScript, Mac, OS X, Rails, Ruby, Software, Subversion, TextMate | Leave a Comment »

Ruby, Rails, TextMate

Posted by Marcus Wyatt on 24 December 2007

Ruby

Rails

TextMate

Technorati Tags: , ,

Powered by ScribeFire.

Posted in Rails, Ruby, TextMate | Leave a Comment »

Ruby, Rails, TextMate

Posted by Marcus Wyatt on 10 December 2007

Ruby

  • Hash#select – Tips on using the Hash#select method to select the hash values you want and have those values in a new hash to work with.
  • Rak – a grep replacement in pure Ruby

Rails

TextMate

Technorati Tags: , ,

Powered by ScribeFire.

Posted in Rails, Ruby, TextMate | Leave a Comment »

Ruby, Rails, API, TextMate

Posted by Marcus Wyatt on 7 December 2007

Ruby

Rails

API

TextMate

Technorati Tags: , , ,

Powered by ScribeFire.

Posted in API, Rails, Ruby, TextMate | Leave a Comment »

Ruby, Rails, TextMate, JavaScript, CSS, Web Usability, Mac OS X

Posted by Marcus Wyatt on 8 November 2007

Ruby

Rails

TextMate

JavaScript

CSS

Web Usability

Mac OS X

Technorati Tags: , , , , , ,

Powered by ScribeFire.

Posted in CSS, JavaScript, Mac, OS X, Ruby, TextMate, Web | Leave a Comment »

Ruby, Rails, Rails Plugin, JavaScript, CSS, TextMate

Posted by Marcus Wyatt on 5 November 2007

Ruby

Rails

Rails Plugin

JavaScript & CSS

TextMate

Technorati Tags: , , , , ,

Powered by ScribeFire.

Posted in CSS, Development, JavaScript, Rails, Rails Plugins, Ruby, TextMate | 1 Comment »

CSS, JavaScript, Rails, Ruby, Rails Plugins, TextMate

Posted by Marcus Wyatt on 2 November 2007

CSS

JavaScript

Rails

Ruby

Rails Plugins

TextMate

Technorati Tags: , , , , ,

Powered by ScribeFire.

Posted in CSS, JavaScript, Rails, Rails Plugins, Ruby, TextMate | Leave a Comment »

Links for 29 October 2007(Rails, Dsl, JavaScript, CSS, TextMate)

Posted by Marcus Wyatt on 29 October 2007

Rails

Domain Specific Language

JavaScript

CSS

Web General

Technorati Tags: , , , ,

Powered by ScribeFire.

Posted in CSS, JavaScript, OO, RoR, TextMate | Leave a Comment »