SJ's Rails Bundle 0.2 for TextMate
Fri, 24 Feb 2006 01:18:00 GMT
Everything that you’ve seen posted on my blog is now available in one bundle. Snippets for Rails database migrations and assertions are all included in this bundle.
There are 2 macros for class-end and def-end blocks, bound to ⌃C and ⌃D respectively. Type the class or method definition, except for class or def, and then type the keyboard shortcut and the rest is filled in for you.
I use an underscore to denote the position of the cursor in the following example:
method(arg1, arg2_)Typing ⌃D at this point results in this code:
def method(arg1, arg2)
_
endThere is a list of the snippets in Features.rtf, which is included in the disk image. Of course you can also browse them in the Snippets Editor built into TextMate.
Without further ado, here is the bundle:
Download SJ’s Rails Bundle 0.2
This is a work in progress, so any feedback you have is very helpful in making the next release better.
Hi Sami! I’ve added your superb work to the Rails bundle itself. I love it! Thanks again.
Release candidate 4: http://blog.inquirylabs.com/
With the inspiration of Scott Barron (and a tip from Kyle Maxwell) I’ve added the reverse migration to the Rails bundle also. You can now use the “mdct” snippet and it will create the corresponding table for the drop_table, using your db/schema.rb as source material. Only in SVN at this point.
That’s excellent! I added the ability to reverse the snippets just yesterday, but I never thought to get data from schema.rb to do it in that clever way.
I’ll have to take a look at it. Thanks. :)