Yan Pritzker photographer, entrepreneur, software engineer, musician, skier

Blog :: Git Workflows Book :: Dotfiles :: Photography :: About Me

TwitterCounter for @skwp

Get the news feed
Get updates by email
Follow me on twitter

hello, i'm yan

I am a photographer, entrepreneur, software engineer, guitarist, climber, and telemark skier

This blog is about startups, blogging, Ruby On Rails, virtualization and cloud computing, photography, customer service, marketing, ux and design, git, and lots more.

Enterprise intelligence with prediction markets

Find out what your team, colleagues and partners really know about the future — and leverage their knowledge to improve business decisions.

I'm the founder of Planypus, the place to share your plans!

Archives

Contact

Reach me at yan at pritzker.ws

Visualize your rails models and controllers

Posted 2 February 2007 @ 5pm | Tagged thoughts


Submit to HN

I don’t know why I didn’t run into this hidden gem before. There’s a plugin called RAV which generates a graph image of your rails models and controllers structure using graphviz, and it’s really easy to use! Just follow these steps:

# install the plugin
script/plugin install svn://rubyforge.org/var/svn/rav/

#install graphviz, for ox you do:

http://www.pixelglow.com/graphviz/download/

ln -s /Applications/Graphviz.app/Contents/MacOS/dot /usr/local/bin/dot

#in your rails root:
rake visualize

You’ll get a generated image (there are options to do any output format that graphviz supports but the default is png) in doc/diagram.png. Enjoy!


No Comments Yet


There are no comments yet. You could be the first!

Leave a Comment