Multiple thumbnails of image referred to by same symbol.

1 view
Skip to first unread message

iffy

unread,
Oct 5, 2008, 12:16:08 PM10/5/08
to Paperclip Plugin
Say I need multiple thumbnails of the same image, but I need them to
use the same name (symbol)/have their own instances per say.
Is there any good way to go about it?

Also, is there an easy way to make Paperclip behave as an ActiveRecord
based class?
Almost as if has_attached_file points to a separate class.


Jonathan Yurek

unread,
Oct 24, 2008, 4:27:59 PM10/24/08
to papercli...@googlegroups.com
I'm not sure what you mean in the first paragraph. You want two
different thumbnails named, say, ":thumb"? How would you tell them
apart?

If you want a separate model for your attachment, you can simply
create a new class with a "has_attached_file" call in it and no styles
defined, then create a new instance of that model with the thumbnail.
There is no method for having this happen automatically with paperclip.

Does that help?

--
Jonathan Yurek, Founder and CTO
thoughtbot, inc.
organic brains. digital solutions.

617.482.1300 x114
http://www.thoughtbot.com/

Reply all
Reply to author
Forward
0 new messages