On 11 November 2011 12:15, Michael Pavling <pavl...@gmail.com> wrote:
> On 11 November 2011 11:00, Mauro <mrsan...@gmail.com> wrote:
>> Do you use paperclip?
>
> erm.. no :-)
>
> I use a model of my own. Paperclip is great for bunging in a single
> file attachment (inline, into your model), but wasn't a very
> flexible/scalable solution (or at least it wasn't when I needed to do
> file attachments a few years ago).
>
> By having my own model I can treat files like any other association;
> and attach one, many, or have different types depend on my needs.

I have Company has_many :documents
and
Document belongs_to :company

Document has various attributes and the pdf file associated.
I still don't understand if paperclip is suitable for my needs in this case.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to