I think it´s perhaps a simple question, but I don´t know what to do
def text1
  while $i < 10  
    $i = $i + 1 
    puts $i
    redirect :action => :index
  end
end
I want to show all values of the while loop. know i only see the start value 1 and the end value 10. How can i display 1 2 3...and 10.
And the next question, is it possibile to overwrite the value? because I need only one value changing every second.
Is there a possibility (i.e sleep 1 seconnd) to show all values?? please with the correct code thank you :)
 
     
     
     
    