Welcome [email protected]! You can confirm your account email through the link below: enter code hereConfirm my account
I want to edit this message to become like this
My project_name Hello xxxxx click here to confirm you email
Welcome [email protected]! You can confirm your account email through the link below: enter code hereConfirm my account
I want to edit this message to become like this
My project_name Hello xxxxx click here to confirm you email
I believe you wanted to customize confirmation_instructions.html.erb
file from app\view\resource\mailer
when usually resource is users or admin
First of all, check if you set config.scoped_views = true
in config/initializers/devise.rb
Thanks to this, setup devise is looking for templates in your resource's view folder instead of default one in app\views\devise\mailer
Using login
, username
etc. is possible in following way <%= @resource.login %>
After all, make sure to restart server. For reference, check similar issue Ruby/Rails: How do you customize the mailer templates of Devise?