Ruby on Rails Thursday, May 31, 2012

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@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