Ruby on Rails Tuesday, June 1, 2010

Hi,

I'm using Rails Metal to serve certain files,
But i don't know how to change the filename ...

Here is the code in Metal where i send the file :
[200, { 'Content-Type' => file.content_type}, [file.read]]

I tried to specify 'filename'=>'test.zip'... but without success...

Anyone has a clue ?

Thanks,
regards.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment