I have a rails 3 application and 2 user models for authentication with using devise gem.
First class named as StandartUser and second class named as AdminUser.
I can override devise controllers but i want to use specific mails for reset_password_instructions.
Just want to change mail subjects.
For StandartUser -> Mail subject should be “reset password mail”
For AdminUser -> Mail subject should be “bla bla bla bla”
How can i implement this idea on my application?
I have a rails 3 application and 2 user models for authentication with using
Share
Generating the Devise Views will allow you to modify what is in them. This will allow you to change the content but in order to change the subject you will have to override the Devise mailer by creating your own mailer and having devise use it.
Then in the devise config: