Forum: Ruby on Rails restful-authentication (activation_code and user.reload)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
noocx (Guest)
on 2008-12-27 14:17
(Received via mailing list)

I solved one of my problems with restful-authentication plugin: the
sent activation_code was different than the one in the db.

I found the solution in the readme:

"Pay attention, may be this is not an issue for everybody, but if you
should have problems, that the sent activation_code does match with
that in the database stored, reload your user object before sending
its data through email something like:"

I put the user.reload into the observer and now it works, but i don't
understand why.

Can you tell me?

This topic is locked and can not be replied to.