Last Updated: November 03, 2017
·
983
· tmartin314

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