· 1 min read

Screencast: HTTP Streaming

Resourcen:

[code lang=“bash”] bundle echo “listen 3000, :tcp_nopush => false” > config/unicorn.development.rb unicorn_rails —config-file config/unicorn.development.rb curl -i localhost:3000 [/code] [ruby] stream

def index @projects = Project.all # alternative way to enable streaming: # render :stream => true end [/ruby] [html] <% provide :title, “Projects” %>

<% sleep 5 %> [/html] [html]

<%= yield :title %>[/html]

Back to Blog