Вопрос

I want to let new users signup and browse my site without having to confirm their email addresses, until they try to do anything meaningful like create a new project, upload a video or leave a comment.

Does Devise have any hooks for doing this sort of thing?

Это было полезно?

Решение

Try to do it in combination of postponing email confirmation via allow_unconfirmed_access_for and confirmed? for specific actions, like described in similar question1 and question2.

BTW, starting from Devise 2.2.4 allow_unconfirmed_access_for accepts nil for unlimited access without confirmation.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top