On 12 March 2016 at 07:34, Bigmac Turdsplash <li...@ruby-forum.com> wrote:
> i have a fresh rails application called basic... i have boot strap
> working and looking to create a button that if pressed will launch a
> ruby script and display its live output as it happens...
>
> <button type="button" class="btn btn-default">button</button>
>
> <%= 100.times do |i|%>
> <%=   print i*i%>
> <%=   sleep 1%>
> <%=end%>
>

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 answer is the PC running the browser then, for a start, how
would you even know that ruby is installed on that PC?  It is for
exactly that sort of task that javascript was invented.

Colin

-- 
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 rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLs97wo28cyqPvxK4gR52991dz-RQXR%3DZXrqNk71vy6tAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to