Skip to content

Instantly share code, notes, and snippets.

@buk
Created March 21, 2010 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buk/339233 to your computer and use it in GitHub Desktop.
Save buk/339233 to your computer and use it in GitHub Desktop.
def validate
errors.add(:email, "must be valid.") unless email.include? ("@")
if screen_name.include("")
errors.add(:screen_name, "cannot include spaces.")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment