Displaying 1 result from an estimated 1 matches for "nodel".
Did you mean:
node
2008 Apr 09
1
Need help in passing parameters to a background job method
...t; ApplicationController
def bar
worker = MiddleMan.worker(:postal_worker)
result = worker.email_admin(''Some subject'',''And some body'')
render :text => "Check your email " + Time.now.to_s
end
================================
# Rails nodel code
class Emailer < ActionMailer::Base
def send_info(subject,message,sent_at = Time.now)
@subject = subject
@body = {:message => message}
@recipients = ''raghu.srinivasan at gmail.com''
@from = ''''
@sent_on = sent_at...