Friday, November 11, 2011

Re: [Rails] an advice to manage pdf documents.

On 11 November 2011 12:28, Mauro <mrsanna1@gmail.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate