BT

InfoQ Homepage News Rails diagrams made easy with RailRoad

Rails diagrams made easy with RailRoad

Bookmarks
Rails modeling and inspection tools are rare. Based on the fact that Rdoc didn't handle the RoR models associations or "content columns" to his liking, and that other Rubyforge modeling projects don't handle complex systems, Javier Smaldone decided to do his own. He recently released RailRoad 0.3.2. It generates class diagrams from Ruby on Rails applications as DOT graphs. You'll then need tools like Graphviz, or SpringGraph to transform the DOT files into image output.

RailRoad can produce:

Model diagrams, showing both inheritance hierarchy and models associations. You can choose to show the model "content columns" and its types.
Controller diagrams, showing inheritance hierarchy. You can include the controllers' methods, grouped by its visibility (public, protected, private.)
The graphics generated don't look like UML but are closer to BON. The documentation comes with examples of complex models from Rails applications like Typo or rTPlan.

Javier is planning to add some options intended to deal with "large" applications (diagram clusters for modules, exclude some classes, etc.). It will be interesting to see how the project evolves in regard to Javier's responsiveness to feature requests.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.