diff --git a/app/controllers/test_controller.rb b/app/controllers/test_controller.rb index 79b2b5641..1f970b217 100644 --- a/app/controllers/test_controller.rb +++ b/app/controllers/test_controller.rb @@ -25,7 +25,7 @@ class TestController < ApplicationController def ziping files_path folder = "#{Rails.root}/files" input_filename = files_path - zipfile_name = "#{Rails.root}/tmp/archive_#{Time.now.to_i}.zip" + zipfile_name = "#{Rails.root}/tmp/archiveZip/archive_#{Time.now.to_i}.zip" Zip::File.open(zipfile_name, Zip::File::CREATE) do |zipfile| input_filename.each do |filename|