【发布时间】:2013-07-20 14:49:45
【问题描述】:
我正在使用 premailer,在我的本地机器上,我在邮件注释中得到这样的链接:
file://localhost/assets/header_logo.png
而不是
http://localhost:3000/assets/header_logo.png
在开发过程中如何配置 premailer 以确保 url 正确?
我尝试添加
Premailer::Rails.config.merge!(base_url: "http://localhost:3000")
到我的开发配置文件,但服务器 barfs 说没有方法 Premailer::Rails.config。
我也这样做了:
config.action_mailer.default_url_options = {:host => 'localhost:3000'}
无济于事...
【问题讨论】: