Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 如何设计重置密码邮件定制?_Ruby On Rails 3_Devise - Fatal编程技术网

Ruby on rails 3 如何设计重置密码邮件定制?

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

我使用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 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`