Creating nice diagrams of your Rails apps
Using the plugin railroad, you can create dot diagrams (look it up here) for your applications. I do this quite often to get the whole model or controller scheme more transparent and show off the complexity of the app to the customer (yes yes, it’s so damn impressive ^^).
How to get it:
sudo gem install railroad json
Then use railroad to create a dot diagram (I go for a model diagram here):
raiload -o doc/mymodels.dot -M
Or create a diagram of your controllers with…
railroad -o doc/mycontrollers.dot -a -C
Then, use dot to create a graphic out of it:
dot -Tjpg -o doc/mymodels.jpg doc/mymodels.dot
You can also use -Tsvg (for vector graphics) or -Tpng etc.
