Thanks for all the hosting replies guys, I have them neatly tucked away until I discuss that with my boss. In the meantime, I could use some help with file download.

The big picture: a "shopping" site with some sort of a cart creation.
Why the quotation marks: no actual checkout, the "checkout" will generate a .txt file and offer it for download. My (current) problem: can't get a text file to properly show up. I get a text file with "Content-" inside it instead of what I previously stuck in there.
The code (courtesy of http://www.recentrambles.com/pragmatic/view/62):
   send_file('/path/to/code_list.txt',
             :filename         => 'code_list.txt',
             :type             => 'text/plain',
             :disposition      => 'attachment',
             :streaming        => 'true',
             :buffer_size      => '4096'

As Scooby would say: "Relp!"

Thanks.

--
Nik Kantar
Web Engineer
MIPS Computation
[EMAIL PROTECTED]
7964-C Arjons Drive
San Diego, Ca 92126-4392
tel +1 858/530.0400 x24
fax +1 858/530.2226


_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to