修改作业打包下载时有一个README的文件

This commit is contained in:
sw 2014-12-05 14:25:59 +08:00
parent 4d9fc8d74f
commit 9fd48e5cfe
1 changed files with 3 additions and 3 deletions

View File

@ -99,9 +99,9 @@ class ZipdownController < ApplicationController
zipfile.add(rename_file, filename)
end
zipfile.get_output_stream('ReadMe') do |os|
os.write 'Homeworks'
end
#zipfile.get_output_stream('ReadMe') do |os|
# os.write 'Homeworks'
#end
end
zipfile_name
rescue Errno => e