2iecpg
Last Updated: November 03, 2017
·
353
· tmartin314
Fisheye

Visualizing Rails models using RailRoady

Install graphviz to get the dot and neat utilities:

brew install graphviz

Add the railroady gem to your bundle:

group :development, :test do
    gem 'railroady'
end

Run bundle install to install railroady:

bundle install

Run from the command line:

railroady -o models.dot -M

Then process the .dot file as an image, and voila!

dot -Tpng models.dot > models.png
Say Thanks
Respond