ruby on rails - ActionMailer::Base.default_url_options -
i have problem using actionmailer (rails 3.0.19) in rake tasks. whenever want send email using rake task error:
rake aborted! can no longer call actionmailer::base.default_url_options directly. need set config.action_mailer.default_url_options. if using actionmailer standalone, need include routing url_helpers directly.
i have config.action_mailer.default_url_options set in environments/*.rb , not use actionmailer::base.default_url_options call in app.
using rake task mailing doesn't work, using console works fine.
moreover, when mail view contains link_to, crashes. without link_to, ok.
help needed, have absolutely no idea do. thanks.
Comments
Post a Comment