3

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?

stephenmurdoch
  • 34,024
  • 29
  • 114
  • 189
  • I don't know if there is a way to do it like you want but if you ever want to create a guest user maybe this article can help you: https://github.com/plataformatec/devise/wiki/How-To:-Create-a-guest-user – Brock90 Oct 28 '13 at 18:13

1 Answers1

5

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.

Community
  • 1
  • 1
Leger
  • 1,184
  • 8
  • 7