[Backgroundrb-devel] example standalone error.
david.gurba at gmail.com
Fri Mar 2 02:02:54 EST 2007
Trying to get the example to work in standalone mode. I have the following
in a file and am not certain why I get this undefined method error:
my sample app :)
sample_app.rb:9: undefined method `new_worker' for
### code follows ###
# sample_app ... try to get stand-alone happiness.
puts 'my sample app :)'
key = MiddleMan.new_worker(:class => :example_worker)
worker = MiddleMan.worker(key)
# now that my job is done (and my worker is actually deleted on the server)
# my results ... cause now I'lm interested.
puts 'bye bye :)'
I kinda confused because most of the examples online and in /examples assume
that one is using Rails for this. Its kind of difficult to see exactly
where require or init calls need to go.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Backgroundrb-devel