nosretep
2012-Mar-02 19:19 UTC
JRuby with Ruby on Rails HTTP Streaming outputting odd characters
I''m using Ruby on Rails with JRuby on Tomcat. This is my controller: class ApplicationController < ActionController::Base def index render :stream => true, :text => "Hello World!" end end This is the output: c Hello World! 0 Does anyone have any idea why the "c" or the "0" characters are output onto the page? They do not appear if I set :stream => false. HTTP Streaming does seem to work for Ruby on Rails using JRuby on Tomcat, but there''s this oddity. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/taex37-BveMJ. 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.