Ruby on rails 3 如何设计重置密码邮件定制?
我使用Desive进行身份验证,用于重置密码并发送电子邮件,如下所示 你好Ruby on rails 3 如何设计重置密码邮件定制?,ruby-on-rails-3,devise,Ruby On Rails 3,Devise,我使用Desive进行身份验证,用于重置密码并发送电子邮件,如下所示 你好 if you would like to reset or if you have forgotten your password please click on the following link: click_here Thank you and happy bantering! the swagata@gmail.com Regards 我想要最后一行看起来像 regards the swagat
if you would like to reset or if you have forgotten your password please click on the following link: click_here
Thank you and happy bantering!
the swagata@gmail.com Regards
我想要最后一行看起来像
regards
the swagata@gmail.com
请给我一些建议您可以自定义设计视图。在项目目录中运行以下命令:
rails g devise:views
这将复制
app/views/designe
目录中的designe视图(包括邮件模板)。然后,您可以根据需要进行自定义 具体来说,在运行rails g designe:views
之后,您要编辑的模板是app/views/designe/mailer/reset\u password\u instructions.html.erb
或``app/views/designe/mailer/reset\u password\u instructions.html.haml`