Render partial from Backgroundrb worker?

It is possible to render an action from backgroundrb, although it's a
bit tedious. Backgroundrb doesn't seem to load the controller layer
when it runs - I assume this is because it's intended for manipulating
data, and not generating views, which makes sense. Anyway, in order to
get the rendering functions working you need to create a Dummy
controller that implements a few methods that render relies on. I've
included a stripped down version below which *should* work, although I
haven't tested it. The example works on the older win32 compatible
version of backgroundrb, but I haven't tried it on the newer *nix only
version.