amjad
amjad

Reputation: 2916

How to generate documentation for models in rails application?

I want to generate documentation for my rails application. The application has models with relationship(e.g. has_many relation) and I am looking for a way to generate documentation that shows the relation between models. Ideally, with some graphs those represent the relationships between models.

Is there a way to achieve this in rails 3.2x ?

Upvotes: 2

Views: 505

Answers (1)

m_x
m_x

Reputation: 12564

Check out the rails-erd gem. It generates entity-relationship diagrams from your models.

The Rubymine IDE also does it on the fly, but it's not free.

Upvotes: 2

Related Questions