Or is it ?
Form FormType FormTypeItem
| id | -> | id | <- |
id |
---|
|form_type_id | - | name | - | form_type_id |
|
title |
Need to be able to :-
@search =
Form.find(:all, :include=>[:form_type, :form_type_items],
:conditions=>…)
I need in the Form model a :form_type_items, the question is, what is
the relationship type?
Current Models:-
Form
belongs_to :form_type
FormType
has_many :form_types
has_many :form_type_items
FormTypeItem
Belongs_to :form_type