Ruby-machinist-tmbundle is a project mainly written in RUBY and JAVASCRIPT, it's free.
TextMate bundle for Machinist
Within blueprints.rb file:
Consider a BlogPost that has many BlogComments in a blog app. If you go to your blueprints.rb file, type "BlogPost" and press "Cmd+B" the bundle will load up the BlogPost class, inspect it, and generate the following blueprint:
BlogPost.blueprint do
title
body
author { BlogAuthor.make }
comments { [ BlogComment.make ] }
tags { [ Tag.make ] }
end
All associations are included with useful starting points.
To install with Git:
mkdir -p ~/Library/Application Support/TextMate/Bundles
cd ~/Library/Application Support/TextMate/Bundles
git clone git://github.com/drnic/ruby-machinist-tmbundle.git "Ruby on Rails.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'
To install without Git:
mkdir -p ~/Library/Application Support/TextMate/Bundles
cd ~/Library/Application Support/TextMate/Bundles
wget http://github.com/drnic/ruby-machinist-tmbundle/tarball/master
tar zxf drnic-ruby-machinist-tmbundle*.tar.gz
rm drnic-ruby-machinist-tmbundle*.tar.gz
mv drnic-ruby-machinist-tmbundle* "Ruby on Rails.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'
Development of Ruby Machinist.tmbundle is sponsored by:
Contributors include: