Wes,
Tried that, same error.
Guess not many people have run into my problem.
-Gregg
-----Original Message-----
From: Wes Garrison [mailto:wes.garrison-P9ahnqO9lO/QT0dZR+AlfA@public.gmane.org]
Sent: Monday, July 25, 2005 10:25 AM
To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: RE: [Rails] Export to Excel Help
Could you change the content type?
http://wiki.rubyonrails.com/rails/show/HowtoChangeTheContentType
If you send back a ''text/csv'', the browser should handle it
with the
appropriate viewer.
-- Wes
-----Original Message-----
From: Gregg Pollack [mailto:patched-i8bqrNpN1PPCXmymsgaQcQ@public.gmane.org]
Sent: Monday, July 25, 2005 3:09 PM
To: ''Dee Zsombor'';
rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: RE: [Rails] Export to Excel Help
Zsombor,
I have tried both send_data and send_file. They both render the
same error I listed. The only difference is that send_file takes about
10 seconds for the server to respond, where as send_data is
instantaneous.
How would I use rail''s CSV tools to create a buffer which I
could then send? This is not clear.
Thanks for the response though,
-Gregg
-----Original Message-----
From: Dee Zsombor [mailto:dee.zsombor-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Monday, July 25, 2005 9:47 AM
To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: Re: [Rails] Export to Excel Help
Your example should have used send_file, as data was created on the
filesystem. As for your other question: send_data can send generic
buffers without having to save anything on the disc:
send_data buffer
will send content of buffer.
Hope it helped,
Zsombor
--
http://deezsombor.blogspot.com
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails