Skip to content

Instantly share code, notes, and snippets.

@rubytastic
Created September 28, 2011 13:28
Show Gist options
  • Save rubytastic/1247929 to your computer and use it in GitHub Desktop.
Save rubytastic/1247929 to your computer and use it in GitHub Desktop.
validates :username,
:exclusion => {:in => ["admin", "root", "administrator", "superuser", "someone"],
:message => "is reserved" }
validates :email,
:exclusion => {:in => ["*@domain.*"],
:message => "email not allowed" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment