Closed duhaime closed 7 years ago
Ahh yes, this is an error with the documentation.
try user.activated_at = Time.now ? (could be confirmed_at)
You were quite right, user.confirmed_at = Time.now
sets the appropriate value in the user hash! I sent a quick pull request to update the documentation.
When following the quickstart directions using Vagrant, I create a User following the instructions, but when I issue
user.send(:activate!)
I getNoMethodError: undefined method
activate!' for #User:0x00000006096888`. I'm on OSX with Vagrant 1.8.1. Am I missing something?Here's the full transaction:
I can still use
http://localhost:3000/u/confirmation?confirmation_token=i4RS6_aSFnYsQ7e2uaVE
to confirm the account.