1
我以前有一个邮寄者设置为将电子邮件发送给所有用户帐户。但现在我试图调试它。所以我彻底解决了它,并且仍然发送电子邮件给我。Delayed_Jobs不会刷新
我完全没有任何理由或理解为什么。疯狂! :d
控制器
def org_blast_send
Delayed::Job.enqueue OrgBlast.new(params[:subject], params[:editor1])
redirect_to org_blast_admin_email_blast_path
end
org_blast.rb
class OrgBlast < Struct.new(:subject, :editor1)
def perform
# You see? There is absolute nothing here but it still sends an email.
# However, if I rename this file, the website fails looking for it.
end
end
notifier.rb
def org_blast(org, subject, message)
subject subject
from NOTIFIER_EMAIL
recipients org.users.first.email
sent_on Time.zone.now
body :user => org.users.first.first_name + ' ' + org.users.first.last_name, :message => message
content_type "text/html"
end
0123因为有时候在问这个问题时有助于理解问题;-) – hurikhan77 2010-10-11 17:56:25
......有时候问这个问题有助于你理解问题! – zetetic 2010-10-11 19:19:21
我正在研究一个Web应用程序,它会告诉你你对未来所说的话。这样所有的答案都更加个性化。了解与量子物理和时间扩展有关的任何红宝石宝石吗? – Trip 2010-10-11 19:45:12