search for: buildzip

Displaying 1 result from an estimated 1 matches for "buildzip".

Did you mean: build_id
2006 Apr 13
0
Making @headers[''Refresh''] and send_file work together?
...le. The link to "Download Zip" goes to / controller/get_zip. That action looks like this: def get_zip @cart = find_cart ids = Array.new @cart.songs.each do |song| ids.push song.id end args = ids.join(" ") zipfile = `#{RAILS_ROOT}/perl/buildzip.pl #{args}` begin size = File.stat(zipfile).size @cart.empty! filename = "out.zip" send_file(zipfile, :filename => filename, :type => "application/zip", :str eaming => false) rescue flash[:warning] = "Zip file no longe...