On 11 November 2011 12:28, Mauro <[email protected]> wrote:
> Now, Company has_many documents and every document has a pdf file as 
> attachemnt.
> Do you think this is a valid approach?

Like I said, that's exactly what I do, so I guess I must think it's valid :-)

You can always set up a "has_many :through" for your Company's files
if you *need* to call "company.files" rather than working though the
"company.documents" collection.

-- 
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.

Reply via email to