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
turadg edited this page Sep 28, 2012
·
7 revisions
File upload is a 'virtual' field type not meant to be used directly, but through vendor implementations (Paperclip/Dragonfly/Carrierwave)
Those implementation share common characteristics.
If defaults don't fit, fine-tune with:
field:assetdo# set a method available to your asset (defaults to :thumb, :thumbnail or '100x100>' for Dragonfly)thumb_method:large# for delete checkbox in formsdelete_method:asset_delete# don't forget to whitelist if you use :attr_accessible# in case of a validation failure, to retain asset in the form (not available for Paperclip)cache_method:asset_cache# don't forget to whitelist if you use :attr_accessibleend