Hi I''d like to log the email when a "validates_uniqueness_of :email" test fails on user sign-up. The reason for this is that I''d like to keep watch on who is trying to use multiple accounts (for the purposes of minimizing disruptive behaviour on my website) So, for a new user, if they tried to first signup using an existing email address, I''d like to have that logged in a text file somewhere. Is there a straight-forward way to do this? thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jason Bowerman wrote:> Hi > > I''d like to log the email when a "validates_uniqueness_of :email" test > fails on user sign-up. > > The reason for this is that I''d like to keep watch on who is trying to > use multiple accounts (for the purposes of minimizing disruptive > behaviour on my website) > > So, for a new user, if they tried to first signup using an existing > email address, I''d like to have that logged in a text file somewhere. > > Is there a straight-forward way to do this? > > thankslogger.warn "message" would probably do the trick. _Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---