loop action and view

hi there, you should look into the ajax/prototype helpers for this kind of problem. namely periodically_call_remote which lets your view call a remote function that returns your @current_job explained here: http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M000528 and remote_function that would let you call a function that would stop whatever it is that´s incrementing @current_job explained here: http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M000534

cheers

Nanyang Zhan wrote: