Hi all,
I am new to RoR and ruby.
In one of my controller I have:
def attachment
send_file(''polop.txt'',
:filename => ''polop.txt'',
:disposition => ''attachment'',
:streaming => ''true'')
end
With Firefox, when the fonction is called the file can be downloaded and
the dialog box contains the right information... but with Internet
Explorer 7 the dialog box doesn''t have the right file name (it has the
name of the fuction that calls ''attachment'') and
doesn''t recognize the
format of the file.
I can''t find why I got this difference of behaviors. I hope you can
help.
Thanx
Fred
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---