Rails 3 with Devise for Authentication - How do I manually create a user?

前端 未结 2 1568
猫巷女王i
猫巷女王i 2020-12-24 11:40

I would like to manually create new Users, without forcing them to verify their email address.

The idea is to allow existing users to automatically add

2条回答
  •  别那么骄傲
    2020-12-24 12:19

    I just want to add for future reference that since Devise 2.2 there is now a skip_confirmation_notification! method available as well which basically does everything from Matheus' post without redefining the methods in the model.

提交回复
热议问题