search for: uservalidator

Displaying 1 result from an estimated 1 matches for "uservalidator".

Did you mean: setvalidator
2011 Dec 05
2
How to bypass a create record after validation wo error ?
I have a specific signup process to handle, and I am turning around the solution wo finding a clear validation ... a visitor fill in a User Registration form ( email /pwd /pwd confirmation ) I wrote a UserValidator class to check the uniqueness of the email field # if no user registered w this email, then no error , can proceed to create User.where(:email => self.email).empty? # no error # if a user is already registered w this email, target_subdomain = Subdomain.find(self.subdomain_id) unless ta...