I\'m uploading a file to the server in Ruby on Rails
Normally, it\'s a text file and I save it in the model as a \'file\' field in a Submission ActiveRecord with oth
From the RubyZip project page:
Rubyzip interface changed!!! No need to do require "zip/zip" and Zip prefix in class names removed.
So, the example code from @ben-lee should be updated to something like this:
require 'zip'
Zip::File.open("my.zip") do |zipfile|
zipfile.each do |file|
# do something with file
end
end