streaming XML in rails 3.1 with ruby 1.9.2

27 views
Skip to first unread message

Marcelo Barbudas

unread,
Sep 16, 2011, 3:35:26 PM9/16/11
to rubyonra...@googlegroups.com
Hi.

I'm trying to get streaming to work on a rails 3.1 app with ruby 1.9.2. The action sends a big XML file.

The file looks like:
<items>
<% @files do |f| -%>
<%= render_file_source_xml(f).html_safe -%>
<% end %>
</items>

I would like the render_file_source_xml call to be streamed as it's processed. Is it possible with rails3.1?

-m.
Reply all
Reply to author
Forward
0 new messages