Skip to content

Instantly share code, notes, and snippets.

@ahoward
Created July 23, 2010 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ahoward/487804 to your computer and use it in GitHub Desktop.
Save ahoward/487804 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
# ...
validates_presence_of :email
validates_uniqueness_of :email
validates_length_of :password, :minimum => 3
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment