Ruby on Rails
Friday, June 7, 2019
Great, I thought you were trying to load a file.
On Thursday, June 6, 2019 at 10:29:30 PM UTC-4, Sampson Crowley wrote:
-- On Thursday, June 6, 2019 at 10:29:30 PM UTC-4, Sampson Crowley wrote:
yeah chrome shows "Network Error" for the file, with no response body in the network tools. there are no errors on the rails side of things. what do you mean "where is the csv file"? its generated. that's the whole issue hereI figured out it was a "deflate" header that was being sent without the compression actually being used, and ended up building a gem that adds a responder to handle streaming instead of pre-rendering
On Thursday, June 6, 2019 at 11:27:57 AM UTC-6, Joe Guerra wrote:Network error? Where is that csv file your trying to load?
On Thursday, June 6, 2019 at 12:11:09 PM UTC-4, Sampson Crowley wrote:Can someone please explain to me how I can access the main response object and headers in a template handler? I want to create a csv builder that streams row by row through a template instead of having to keep the whole code in the controller, but I can't even get a basic version working
Sample code here: https://stackoverflow.com/questions/56470157/rails- custom- actionviewtemplatehandler-no- data-sent
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b24f2597-ba0c-4a59-add0-8f86ad894be8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment