Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
snippet from irc
Validate('#new_user', {
'username' : {
'minimum' : 5,
'maximum' : 20,
'presence' : true
},
'password' : {
'minimum' : 8,
'maximum' : 32,
'presence' : true
},
'email' : {
'presence' : true
},
'password_confirmation' : {
'presence' : true,
'confirm' : true
},
'email_confirmation' : {
'presence' : true,
'confirm' : true
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.