设计未从 haml 转换为 html 的确认电子邮件



我正在使用Devise的可确认模块,当应用程序发送电子邮件要求用户确认其电子邮件地址时,它不会将消息表单HAML转换为HTMl。 相反,这是交付给用户的内容。

%p Welcome #{@resource.email}! %p You can confirm your account 
email through the link   below: %p= link_to 'Confirm my account',
confirmation_url(@resource, :confirmation_token => @resource.confirmation_token)

知道我做错了什么吗?

查看此文档,https://github.com/plataformatec/devise/wiki/How-To%3a-Create-custom-layouts

  config.to_prepare do
     Devise::Mailer.layout "email" # email.haml or email.erb
  end

最新更新