title: ruby can't convert Array into String error
body: <p>I am trying to do this zip thing <br>
  <a href="http://blog.devinterface.com/2010/02/create-zip-files-on-the-fly/" rel="nofollow">http://blog.devinterface.com/2010/02/create-zip-files-on-the-fly/</a></p>
  
  <p>However, I got a bit confussion with returning the path of files using path method that returns the file inside a folder. </p>
  
  <pre><code>       def download_zip(image_list)
         . . .
         image_list.each do |img|
         z.put_next_entry(title)
         z.print IO.read(img.path)
         end
  </code></pre>
  
  <p>my confussion is with the z.print IO.read(img.path). Meeans that I need to have a path method in the mode of image_list (isn't it?). I wrote down this path method </p>
  
  <pre><code>        def path
          @files = Dir.glob("C:/myfolder/me/*") 
          @files
          end
  </code></pre>
  
  <p>where I have some files inside the "me folder" that I need to return to z.print IO.read(img.path)
  but I got an error of can"t convert array into string. Can anyone point out how to do the path method that can return the files and avoiding the array into string problem? I tried to use File.open instead of Dir.glob, and got permission error in windows. 
  <br><br>
  Thank you for any response </p>