Displaying 1 result from an estimated 1 matches for "record_list".
2005 Oct 11
2
Process meter
...period of time, I would like to
update the user as to the progress of the transaction. How can I do this in
Rails? Since I can only render once in an action, I don''t see how I can send
updates. After the end of the process, I am sending the generated file, e.g.,
def print_report
record_list = Record.find (...) # long list of records
pdf = PDF::Writer.new
for record in record_list
# do processing which adds to the PDF
...
# ideally update the user periodically with status
# (e.g., record x of y or %complete)
end
send_data(pdf.render, :filen...