Archive for December 20th, 2008

These commands will directly draw the following to a .png file
1. Database Models
2. Mailer models
3. Observer models
4. Associations (with lines and arrows)
5. Inheritance among classes (for regular models, mailers, and observers)

As root user:

gem install railroad
yum install graphviz

cd rails_app_root

railroad -a -i -M | dot -Tpng > models.png

Be sure to run the last command as root user, otherwise you’ll get this error:
Error: Layout was not done. Missing layout plugins?

Here’s the result in png format


Tags: , , ,

Comments No Comments »