[Backgroundrb-devel] Need help in passing parameters to a background job method

Ryan Leavengood leavengood at gmail.com
Wed Apr 9 20:45:08 EDT 2008

On Wed, Apr 9, 2008 at 7:46 PM, Raghu Srinivasan
<raghu.srinivasan at gmail.com> wrote:
> This errors out with a wrong number of arguments passed (2 for 1) message. I
> think I am making a mess of passing parameters to the email_admin method in
> the worker. How should I be passing multiple parameters to email_admin?

Worker methods are only supposed to have one argument, usually called
args. If this needs to take multiple values, use a hash:

def email_admin(args)


More information about the Backgroundrb-devel mailing list