Validates_uniqueness_of customization

Hey,

I have a simple web app where I would like users to sign up with a
maximum of two accounts per email address. What would be the rails way
of accomplishing this. Is there anyway of modifying
validates_uniqueness_of to perform the proper validations?

Thanks

why do you insist on validates_uniquesness_of?
you can just use a normal, customized validate method.
but if you insist, you can redefine that method.

On Jan 27, 6:57 am, Dan G. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs