I need to allow multiple downloading of small documents in Rails, preferably using Paperclip (I’ve already used it to enable uploading).
Specific needs:
- Zip the files for download.
- Download different file types together (.jpeg, .doc, docx, .pdf).
I have found lots of tutorials online for multiple uploading, but not for downloads. I appreciate your help. Thanks!
Define a
downloadaction on the controller that is supposed to handle the download. The method could look something like this: (Given aFilemodel with a paperclip attachment calledattached)