Rails ActionController::Live - Sends everything at once instead of async
问题 I have an issue with rails ActionController::Live In the end I want to show the progress of FFMPEG to the user, but for now I want to get this minimal example running: Rails media_controller.rb: class MediaController < ApplicationController include ActionController::Live def stream puts "stream function loaded" response.headers['Content-Type'] = 'text/event-stream' i = 0 begin response.stream.write "data: 1\n\n" sleep 0.5 i += 1 puts "response... data: " + i.to_s end while i < 10 response