I have a long running process for an internal Rails 3 app. In a certain case I iterate over and process thousands + records which takes awhile. I want to output something like the detail of which record is being processed out to the user, to show that the process is in progress and not hung. This app is not about not keeping the user from waiting but to keep them in the loop, excuse the pun.
So for example I have an array.each method which is handling these many records. Anyone have an idea how I could send messages out of this loop while it is in progress? If I was just writing a console app I would use 'puts' or 'print'... so that I would see these messages in real time on the console. Any way to do anything similar on the web? I know on the ui side I would have to do some ajax in a loop to get the updates. Thinking aloud, I could have this method output to a db table which the ajax could query... kind of yucky. Just curious if there would be any easy way to do this before I resort to a simple spinner. Thanks, David -- 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.

