Rails, DEVISE - Preventing a user from changing their email address

后端 未结 3 1019
囚心锁ツ
囚心锁ツ 2021-01-15 06:29

When a user registers on my app they have to confirm their email, powered by Devise + Rails 3.

The email address defines the user\'s permissions so I don\'t want the

3条回答
  •  时光说笑
    2021-01-15 07:05

    attr_readonly :email

    That solved the problem easily.

    https://groups.google.com/forum/#!topic/plataformatec-devise/skCarCHr0p8

提交回复
热议问题