On Wed, Apr 9, 2008 at 7:46 PM, Raghu Srinivasan
<[EMAIL PROTECTED]> 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)
  Emailer.deliver_send_info(args[:p_subject],args[:p_body],Time.now)
end

Ryan
_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel

Reply via email to