You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
davelyon edited this page Jul 8, 2011
·
12 revisions
NOTE: Not included in latest gem release (0.5.4)
If you want to hold both images and regular files as attachments to a model, additional processing (i.e. creating a thumbnail) can be attached only to images.
Here's the example code to create thumbnails when the uploaded file is an image: