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 proj开发者_开发知识库ects, however they seem to be in less maintained states than even RailRoad:
- Rails Application Visualizer
- Visualize Models
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.
RailRoady is the updated RailRoad, for Rails 3.
BUT note that the latest version (v1.0.2) has a known known issue that breaks rails generate scaffold
. I tend to only enable it in my Gemfile when I need to generate the diagram(s), and then I disable it.
You could also checkout Schemapper for Rails 3.0+
精彩评论