gem install rubyzip
Then, in the model that I’m using to generate the zip bundles, I add a couple “require” statements:
require ‘zip/zip’
require ‘zip/zipfilesystem’
class Album < ActiveRecord::Base
(…)
end
Next, I added a class method called bundle, which when called will use rubygem to generate the zip file. Note: the “permalink” attributes of Album and Artist are populated [...]

