On 6 May 2010 18:51, tashfeen.ekram <[email protected]> wrote:
> Thanks!
>
> I can think of a few ways to write a script with a continous loop.
> Just wondering though if there is a straight forward way to do it.
while true
Model.all.each do |record|
#... stuff with record
end
end
Writing a continuous loop isn't hard (I do it myself by mistake all
the time!) - but monitoring it to ensure it's running is the problem.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.