Search code examples
ruby-on-railsruby-on-rails-3visualizationdiagram

How to better visualize Rails Models and Applications?


Is there a RailRoad replacement or something that provides diagrams like unto it for Rails 3.x? Presently you have to edit line 54 of app_diagram.rb from:

(OLD) STDOUT.reopen(PLATFORM =~ /mswin/ ? "NUL" : "/dev/null")
      to
(NEW) STDOUT.reopen(RUBY_PLATFORM =~ /mswin/ ? "NUL" : "/dev/null")

Finally I found on their Forums that if you run it with something like this:

  RUBYLIB=. railroad -o models.dot -M

It will actually run, but I didn't really get any output as per what should have appeared in the .dot file after opening it in OmniGraffle. Further, it seems to just simply gag on more complex enhancements like Hobo.

Is anyone familiar with something new or a fork of this project that's still in development?

PS - I found two other projects, however they seem to be in less maintained states than even RailRoad:


Solution

  • It appears that Rails ERD may be what I'm really looking for at the moment. Seems to fit the bill precisely for my original question.

    Works with Rails 3 and Hobo, which was more of my intention for "sanity checking" my models against initial designs I put together when conceptualizing projects.

    enter image description here