ModelGraph
==========

Generate graphs of model relationships.

This plugin has two functions to display graphs of model using GraphViz.

 (1) Controller generator plugin.
 (2) Rake tasks.

Authors
=======

Genki Takiuchi -- http://rails.office.drecom.jp/takiuchi
Original implementation

Kazuhiko <kazuhiko@fdiary.net> -- http://www.fdiary.net/
Task version

Usage
=====

(1) Controller generator plugin.

To generate controller for display graph of models, use

  ./script/generate model_graph

ModelGraphController will be generated.

You'll get a graph image in png format when accessing '/model_graph'.

You can also get other format supported by GraphViz if 'format' parameter
specified such as follows:

  /model_graph?format=svg


(2) Rake tasks.

To generate graphs with PNG format (default).

  rake model_graph

To generate graphs with a specific format (png/gif/jpg/ps/svg etc.).

  rake model_graph FORMAT=jpg
