InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Rails diagrams made easy with RailRoad

Posted by Sebastien Auvray on Apr 10, 2007

Sections
Development
Topics
Ruby ,
Ruby on Rails ,
Artifacts & Tools
Tags
BON ,
Diagramming
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.

No comments

Watch Thread Reply

Educational Content

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.

Beauty Is in the Eye of the Beholder

Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.

Architecting Visa for Massive Scale and Continuous Innovation

John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.