Guys, I am using restful_authentication with rails 2.2 an realized that when a user tries to sign up the activation code that is set to his email is different from the one in the database. Do you know if this is an issue of rails 2.2? It used to work fine withe rails 2.1 Thanks Rodrigo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I have recently setup restful_auth.. on 2.2.2 and all the unit tests passed except for a little correction in the users.yml (fixture) I have been able to successfully create and activate users. I did setup with acts_as_state_machine (AASM) too. Some things I would check- Did the migration from 2.1 to 2.2 succeed? Are the unit tests successful? Hope this helps. -Master Chief (RoR noob) _____ From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Rodrigo Muiño Sent: Friday, February 13, 2009 9:36 AM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] restful_authentication with rails 2.2 Guys, I am using restful_authentication with rails 2.2 an realized that when a user tries to sign up the activation code that is set to his email is different from the one in the database. Do you know if this is an issue of rails 2.2? It used to work fine withe rails 2.1 Thanks Rodrigo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Same problem here. I did setup with AASM. Walking through the source it looks like the function in the model to generate the activation code is being called twice. Once before save, and then mysteriously again before the mailer. I''m not sure why this second call is happening, but that''s why the email (and the output in the logfile) is wrong. Let me know if you came up with a fix. A. On Feb 13, 12:36 pm, Rodrigo Muiño <rodrimu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Guys, I am using restful_authentication with rails 2.2 an realized that when > a user tries to sign up the activation code that is set to his email is > different from the one in the database. > Do you know if this is an issue of rails 2.2? > It used to work fine withe rails 2.1 > > Thanks > Rodrigo--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This issue is noted right on the plugins github page: http://github.com/technoweenie/restful-authentication/tree/master "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: class UserObserver < ActiveRecord::Observer def after_create(user) user.reload UserMailer.deliver_signup_notification(user) end def after_save(user) user.reload UserMailer.deliver_activation(user) if user.recently_activated? end end " On Feb 24, 8:50 am, Genkilabs <genkil...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Same problem here. I did setup with AASM. > Walking through the source it looks like the function in the model to > generate the activation code is being called twice. Once before save, > and then mysteriously again before the mailer. I''m not sure why this > second call is happening, but that''s why the email (and the output in > the logfile) is wrong. > Let me know if you came up with a fix. > A. > > On Feb 13, 12:36 pm, Rodrigo Muiño <rodrimu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Guys, I am using restful_authentication with rails 2.2 an realized that when > > a user tries to sign up the activation code that is set to his email is > > different from the one in the database. > > Do you know if this is an issue of rails 2.2? > > It used to work fine withe rails 2.1 > > > Thanks > > Rodrigo--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---