0
How to add a zip file instead of an image?
class UploadDatabase < ActiveRecord::Base
has_attached_file :zip_file, styles: { medium: "300x300>", thumb: "100x100>" }, default_url: "/images/:style/missing.png"
validates_attachment_content_type :zip_file, content_type: /\Aimage\/.*\Z/
end
Which Gem are you using for this?
– lcguida