Displaying 1 result from an estimated 1 matches for "passwdentry".
2007 Sep 24
3
Trouble using backgroundrb
...worker object. Here''s my code:
-------------------- controller app/passwd/index --------------------
class Passwd::IndexController < ApplicationController
layout ''default''
def index
$subtitle = "AIX user inventory tool"
end
def createReport
Passwdentry.delete_all
User.delete_all
session[:job_key] = MiddleMan.new_worker(:class => "passwd:get_passwds_worker", :args => "")
end
def get_progress
if request.xhr?
progress_percent = MiddleMan.get_worker(session[:job_key]).progress
render :update do |...