Hello, We are using JRuby 1.5.1/ruby 1.8.7/Rails 2.3.8 with a GWT front end. I''m having an issue when attempting to send a server side .csv file to the user using rails send_file. my code is: send_file(path_to_file, type=>''text/csv'') While this is returning fine with an http status of 200, the client side save as dialog is never opening for the user to receive the file. Any ideas why this isn''t working? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
same problem. save_file fails. no user dialog box to open or save the file. send_file(path, :type => "application/pdf", :disposition => "inline" ) works in Rails 2 fails in Rails 3 with Activescaffold and webrick or thin. I am also interested in any ideas why this isn''t working? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2012-Jun-19 14:19 UTC
Re: send_data/send_file does not open a save as dialog box
On Jun 18, 10:51 pm, ray <rnevi...-zLKRkbt3P8esTnJN9+BGXg@public.gmane.org> wrote:> same problem. save_file fails. no user dialog box to open or save the > file. > > send_file(path, :type => "application/pdf", :disposition => "inline" ) > > works in Rails 2 > fails in Rails 3 with Activescaffold and webrick or thin. >inline means that the browser will try and display inline if it can - I''d try attachment instead Fred> I am also interested in any ideas why this isn''t working?-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.