Ruby on Rails
Friday, March 2, 2012
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@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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment