Rails class diagrams
Friday, January 22nd, 2010Sometimes it’s hard to remember model attributes and relationships between them. Especially when you are new to the project, diagrams can be very helpful. I came across Railroad gem when I was searching for the right tool. It can generate controller diagrams with inheritance hierarchy and model diagrams with attributes and associations. Output is in the DOT language. Generated .dot files can by processed by Graphviz into .svg or .png format. If you have Omnigraffle you can import .dot files and edit them.