Displaying 1 result from an estimated 1 matches for "validates_as_polymorphic_attachment".
2007 Sep 18
2
Making attachment_fu polymorphic
...et
## one use both the file_system and s3 at the same time. Maybe.
## 2. Mix in Attachment_kung to whatever Model(s) you want to have
the attachments and configure them as
## you normally would for attachment_fu,except use
has_polymorphic_attachment instead of
## has_attachment and validates_as_polymorphic_attachment instead
of validates_as_attachment.
## Write the configuration params just as you normally would. For
more info on
## setting up attachemnt_fu see Mike Clark''s excellent tutorial:
## http://clarkware.com/cgi/blosxom/2007/02/24
## 3. Give your Attachment_kung-ed Model the c...