1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Rails】Deviseメール文面の変更が反映されない時の対処法

Posted at

結論

以下のコメントアウトを外して、「true」にする

config/initializers/devise.rb
  # config.scoped_views = false
  config.scoped_views = true

これで解決する理由

(※解決しない人は、これに当てはまっていない可能性があります。)

  • Deviseにnamespaceを設定していた(devise/users/mailer)
  • Deviseはデフォルトで「devise/mailer」以下のメール文面を見に行く
  • 上記の記述を書くことで、namespaceを認識するようになる
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?