views:

122

answers:

1

Im trying to follow this tutorial.

Its about adding email confirmation after registration... The thing is when I submit the form I get this error

NoMethodError in UsersController#create

undefined method `deliver_verification_instructions!' for #

I looked at the code and indeed there is no such a method on my user model... Im very new at rails...Is the tutorial wrong??

+1  A: 

Yes, tutorial has missed that method in User model. It should be something like this instead of deliver_password_reset_instructions:

def deliver_verification_instructions!
  reset_perishable_token!
  Notifier.deliver_verification_instructions(self)
end

I haven't checked that tutorial if rest is OK, but that was wrong for sure

MBO
Yep - NachoF you might want to keep searching for account activation tutorials.
Andy Gaskell