I have 3 models here setup like thus:
AttachmentType
has_many :attachments
Attachment
belongs_to :page
belongs_to :attachment_type
Page
has_many :attachments
Attachment belongs to both an AttachmentType & Page.
How can I find all AttachmentType by a page id?
I suppose I could say that AttachmentType has_one :page, but that
seems a bit unnecessary.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.