Skip to content

Instantly share code, notes, and snippets.

@naush
Created October 16, 2012 05:01
Show Gist options
  • Save naush/3897301 to your computer and use it in GitHub Desktop.
Save naush/3897301 to your computer and use it in GitHub Desktop.
if (self.name.split.size < 2)
self.errors.add :name, "must have first and last name"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment