search for: postalwork

Displaying 1 result from an estimated 1 matches for "postalwork".

Did you mean: postalworker
2008 Apr 09
1
Need help in passing parameters to a background job method
...ts are below. 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? Thanks ============================== # Worker Code class PostalWorker < BackgrounDRb::MetaWorker set_worker_name :postal_worker def create # this method is called, when worker is loaded for the first time end def email_admin(p_subject,p_body) Emailer.deliver_send_info(p_subject,p_body,Time.now) end end ============================== # Rails...