Hi

Is it possible to stream programmatically from a controller ?

i.e. something like:

def index
    render Proc {
        10.times do
           output.write("some data")
          sleep(1)
         end
    }
end

I know it's not best practice for production or efficiency - but it
would be very convenient for a proof of concept I am trying to build.
Rails has send_data but it only seems able to do it in 1 shot.

weepy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to