Skip to content

Instantly share code, notes, and snippets.

@buk
Created March 21, 2010 11:02
Show Gist options
  • Select an option

  • Save buk/339233 to your computer and use it in GitHub Desktop.

Select an option

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