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
Written by Troy Martin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#