Displaying 1 result from an estimated 1 matches for "tailworker".
2006 Jul 10
2
''uninitialized constant'' error
...---------------
def longrun
session[:job_key] = MiddleMan.new_worker(:class => :tail_worker, :args => {:baz => ''hello!'', :qux => ''another arg!''})
end
In cookbook\lib\workers\tail_worker.rb
-----------------------------------------------
class TailWorker < BackgrounDRb::Rails
def do_work(args)
puts "Printing from inside TailWorker::do_work()"
end
end
When I issue the request to
http://127.0.0.1:3000/My_Test/longrun
I get the following error:
NameError in My testController#longrun
uninitialized constant TailWorker
I'...