render file

Zirael
Wed, 02 May 2007 04:35:45 -0000

Hi,
I want to send file in the response,
I found it''s possible with render method:
 def get_file
    render :file => path, :content_type =>
"application/x-unknown"
end.

But there is one problem,
the default name of that file in system dialog is the method name.

Is it possible to set default file name?

Greets.