[Backgroundrb-devel] Passing blocks to a worker

Joshua Bates joshuabates at gmail.com
Fri Sep 8 16:36:10 EDT 2006

I'm trying to implement a callback system between my controller, and a
The goal being that I could send to the client via Juggernaut when an action
place in the worker. Something like this.

worker.subscribe :action do
  render :update, :juggernaut => "channel" do |page|

There seems to be a couple problems with doing this.
First off, the binding of the block that gets sent from the controller is no
around by the time the block is called from the worker. I could get around
that one,
but I'm not able to get a block to run even when trying to call it with

Is anything like this doable, or am I just barking up the wrong tree?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060908/fa7eaaa3/attachment.html 

More information about the Backgroundrb-devel mailing list