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

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

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:
http://github.com/technoweenie/restful-authenticat...

"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?

Thanks,
noocx
This topic is locked and can not be replied to.