修改作业打包下载时有一个README的文件
This commit is contained in:
parent
4d9fc8d74f
commit
9fd48e5cfe
|
@ -99,9 +99,9 @@ class ZipdownController < ApplicationController
|
||||||
|
|
||||||
zipfile.add(rename_file, filename)
|
zipfile.add(rename_file, filename)
|
||||||
end
|
end
|
||||||
zipfile.get_output_stream('ReadMe') do |os|
|
#zipfile.get_output_stream('ReadMe') do |os|
|
||||||
os.write 'Homeworks'
|
# os.write 'Homeworks'
|
||||||
end
|
#end
|
||||||
end
|
end
|
||||||
zipfile_name
|
zipfile_name
|
||||||
rescue Errno => e
|
rescue Errno => e
|
||||||
|
|
Loading…
Reference in New Issue