Skip to content

Commit

Permalink
zip into 1 file and not an individual folder per img
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferwills committed May 31, 2020
1 parent 56fbe91 commit 5707c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/images_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ def download
end

def download_all
files = {}
files = []
imgs = Image.all
imgs.each do |img|
files[img.title + img.id.to_s] = img.file
files << img.file
end
# byebug

Expand Down

0 comments on commit 5707c6a

Please sign in to comment.