26

Looking for a good tool/gem that can automatically generate a nice looking UML diagram for an existing rails application.

(Im imagining such a tool would read the schema.rb file and then scan the models for relationships)

Evolve
  • 8,939
  • 12
  • 51
  • 63
  • ProTip: If you can't get these tools working, double check your models and make sure you have all your belongs_to and has_many etc. matching up nicely between models. – Evolve Jan 29 '11 at 14:22

3 Answers3

18

For Rails 3, try Railroady, it's maintained as well.

Tom Hartwell
  • 658
  • 1
  • 10
  • 21
17

You could try Rails ERD as a an alternative to Railroad. It is maintained and works specifically for Rails 3.

Evolve
  • 8,939
  • 12
  • 51
  • 63
12

RubyMine has a tool to do this; they call it a "model dependency diagram", but it generates a UML-like graph for your application models.

If you don't want to use RubyMine, check out RailRoad. It's a standalone tool that does similar, though RubyMine's is prettier, IMO.

Chris Heald
  • 61,439
  • 10
  • 123
  • 137
  • 2
    RailRoad has not been updated in the last two years so probably not the best option – Jordi Cabot Sep 14 '10 at 10:01
  • @Jordi Cabot exactly, I tried it approximately a year ago and it was not working – Gabriel Ščerbák Sep 14 '10 at 10:14
  • 1
    You could try [Rails ERD](http://rails-erd.rubyforge.org/) as a an alternative to Railroad. It is maintained and works specifically for Rails 3. – molf Nov 24 '10 at 00:02
  • @molf: Im going to keep the accept with Chris, as he was the best/only answer at the time of asking. But I'll copy your answer out to another Answer so the community can upvote whichever option is best.. (If u want points or something, you make your own and Ill delete mine if it's an issue). Thanks for your suggestions! – Evolve Jan 29 '11 at 14:13
  • In case anyone can't find this, here's the docs https://www.jetbrains.com/help/pycharm/2016.3/viewing-model-dependency-diagram.html shift-option-command-u – Andy Ray Feb 28 '17 at 18:32