|
|
|
@ -72,7 +72,7 @@ class ZipdownController < ApplicationController
|
|
|
|
|
homeattach.attachments.each do |attach|
|
|
|
|
|
homeworks_attach_path << attach.diskfile#.to_s.slice((length+1)..-1)
|
|
|
|
|
end
|
|
|
|
|
zipping("#{homeattach.user.firstname}#{homeattach.user.lastname}_#{homeattach.user.user_extensions.student_id}_#{Time.now.to_i.to_s}.zip", homeworks_attach_path, OUTPUT_FOLDER, true)
|
|
|
|
|
zipping("#{homeattach.user.lastname}#{homeattach.user.firstname}_#{homeattach.user.user_extensions.student_id}_#{Time.now.to_i.to_s}.zip", homeworks_attach_path, OUTPUT_FOLDER, true)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|