Ruby/Rails: How do you customize the mailer templates of Devise?

后端 未结 6 895
Happy的楠姐
Happy的楠姐 2020-12-08 03:45

I\'ve installed Devise for my Rails app (3.0.1) and it\'s mostly working. I just can\'t seem customize the mailer views.

  • My user model is \"User\".
6条回答
  •  遥遥无期
    2020-12-08 04:28

    If you want to generate JUST the email views, you can do it with: rails g devise:views [SCOPE] -v mailer. The [SCOPE] in your case is users.

    Note: I'm using Devise 4.7.3.

提交回复
热议问题