Create a Models Diagram Using Railroad

Posted by SeeBees on Stack Overflow See other posts from Stack Overflow or by SeeBees
Published on 2010-03-22T05:18:31Z Indexed on 2010/03/22 5:31 UTC
Read the original article Hit count: 325

Filed under:
|

Railroad is a great UML tool for Ruby on Rails. It can automatically generate class diagrams of models and controllers.

For models, a railroad-generated class diagram shows attributes of each model and the associations between one model and another. A sample diagram can be found here. It is very useful for a developer to see attributes and associations of models. While attributes and associations reveal the inner states and relationships of models, methods specify their behaviours. They are all desirable in a class diagram. I would like railroad to generate a class diagram that also lists methods for models, which will help me to know what each model does. I know methods are displayed in a diagram that is generated for controllers, but I don't see such an option for a diagram of models. Does someone know how to do that with railroad? Or is that possible?

Thanks!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about uml