Forum: Ruby on Rails Activerecord limitation ? (advanced)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
nigel.bris (Guest)
on 2007-08-02 10:50
(Received via mailing list)
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
This topic is locked and can not be replied to.