how to validate against words ruby active record code example
Example: validates inclusion of rails
validates_inclusion_of :size, :in => ['small', 'medium', 'large']
validates_inclusion_of :size, :in => ['small', 'medium', 'large']