On 14 March 2016 at 16:15, Bigmac Turdsplash wrote:
>
> Here is a demo that I can make work for my situation.
> With the actioncontroler::live Module.
>
> 10.times do |X|
> Response.stream.write("hi world #{X}")
> Sleep 1
> End
> Ensure
> Response.stream.close
>
> As for a button to trigger the ev
https://youtu.be/O9w_hxoxtW0
Here is a demo that I can make work for my situation.
With the actioncontroler::live Module.
10.times do |X|
Response.stream.write("hi world #{X}")
Sleep 1
End
Ensure
Response.stream.close
As for a button to trigger the event, ill have to make due with a
href=>/live
On 13 March 2016 at 22:50, Bigmac Turdsplash wrote:
> I have found the right module actioncontroler::live
That will not let you do what you said you wanted to do, which was put
the following on a web page
<%= 100.times do |i|%>
<%= print i*i%>
<%= sleep 1%>
<%=end%>
and have it update the scr
I have found the right module actioncontroler::live
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrail
On 12 March 2016 at 17:46, Bigmac Turdsplash wrote:
> Colin Law wrote in post #1182139:
>> On 12 March 2016 at 07:34, Bigmac Turdsplash
>> wrote:
>>>
>> The web page and any javascript in it run in the browser. Which
>> computer do you want the ruby script to run on? The server running
>> your
Colin Law wrote in post #1182139:
> On 12 March 2016 at 07:34, Bigmac Turdsplash
> wrote:
>>
> The web page and any javascript in it run in the browser. Which
> computer do you want the ruby script to run on? The server running
> your rails app or the client PC running in the browser?
>
> If you
6 matches
Mail list logo