开发者

Delayed_job in development

Right now my Usermailer is written so I have UserMailer.delay.deliver_blah. Everything works perfect, but like before I'd like the contents of the email printed out in the console f开发者_如何学JAVAor debugging. HOw do I do this?


Set the ActionMailer logger and set the correct log level, during mailer initialization.

ActionMailer::Base.logger = Logger.new(STDOUT)
ActionMailer::Base.logger.level = :info

OR

ActionMailer::Base.logger = Rails.logger
ActionMailer::Base.logger.level = :info
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜