I have the following validatio rules:

'email' => array(
        'valid' => array(
                'rule' => 'email',
                'required' => true,
                'allowEmpty' => false,
                'message' => 'You must provide an email address.'
        ),
        'duplicate' => array(
                'rule' => 'isUnique',
                'on' => 'create',
                'message' => 'This email address is already registered with us.
Because members use this as their login, the address must be unique.'
        )
)

When editing a profile, I keep getting the 'duplicate' error msg. Am I
using the 'on' param correctly? Is there something else necessary?
Looking around online, there are scads of user-provided methods--some
I've used myself--but my interpretation of isUnique was that it's
enitrely built-in to Cake.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to