Ruby on Rails Thursday, June 6, 2019

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/a981f28a-ac0c-40b0-b5df-43ed256e0cec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment