title: How to create a zip archive using Ruby on Rails?
body: <p>I have a bunch of files in a directory. I want to zip some of them together into a zip archive.</p>
  
  <p>I can see there are <a href="http://www.superwick.com/archives/2007/06/14/generating-zip-file-archives-via-ruby-on-rails/" rel="noreferrer">various</a> <a href="http://wareseeker.com/the-ruby-zip-library/" rel="noreferrer">sol</a><a href="http://rubyforge.org/projects/zipruby/" rel="noreferrer">utions</a> for doing so. I could use a gem such as <a href="http://rubyzip.sourceforge.net/" rel="noreferrer">rubyzip</a> or run <code>exec</code> and just use a command line tool. </p>
  
  <p>This is going to impact an important part of the system I'm working on so I'd love to have some feedback and/or directions on creating zip files with Rails.</p>