views:

328

answers:

2

I am looking for a tiny tool/script/plugin to visualize my Rails schema.rb file so that our project does not have to maintain a separate diagram manually.

Do you have any experiences on that subject?

+1  A: 

Joe has a great answer to this question here, complete with rake task.

Jeff Paquette
+1  A: 

Check out RailRoad.

It creates diagrams for models and controllers. I bet it will do what you want. It produces DOT files which can be viewed with Graphviz or other programs.

I've had some success with it, but when you have a ton of models, you may need to do some manual rearrangement to get a decent looking diagram.

RailRoad example

Luke Francl
Accepting your answer. RailRoad looks promising. But how do you rearrange the model drawings? (in my case, it got complicated and messing pretty fast)
Jesper Rønn-Jensen
I used Omnigraffle, which can read DOT files.
Luke Francl