Rails Loop

while $i < $num  do
   puts("Inside the loop i = #$i" )
   $i +=1
end
Glorious Gemsbok