search for: postal_worker

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

2008 Apr 09
1
Need help in passing parameters to a background job method
...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 controller code class FooController < ApplicationController d...