Skip to content

Instantly share code, notes, and snippets.

@harshamv
Created June 20, 2014 06:03
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 harshamv/14cbc08d97d4c6d11341 to your computer and use it in GitHub Desktop.
Save harshamv/14cbc08d97d4c6d11341 to your computer and use it in GitHub Desktop.
validates_inclusion_of :birthday,
:in => Date.new(1900)..Time.now.years_ago(18).to_date,
:message => 'Too young, dude!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment