Re: [Rails] Re: button to launch erb scripts and display outputs.

2016-03-14 Thread Colin Law
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

[Rails] Re: button to launch erb scripts and display outputs.

2016-03-14 Thread Bigmac Turdsplash
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

Re: [Rails] Re: button to launch erb scripts and display outputs.

2016-03-14 Thread Colin Law
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

[Rails] Re: button to launch erb scripts and display outputs.

2016-03-13 Thread Bigmac Turdsplash
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

Re: [Rails] Re: button to launch erb scripts and display outputs.

2016-03-12 Thread Colin Law
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

[Rails] Re: button to launch erb scripts and display outputs.

2016-03-12 Thread Bigmac Turdsplash
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