[Rails] Re: Bug with ENUM?

Bob Aman vacindak at gmail.com
Fri Feb 18 21:42:20 GMT 2005


> > In this case:
> > validates_inclusion_of :chosen, :in => valid
> >
> > Put that (and the definition of valid) in your model class and you'll be
> > fine.
> >
> > //jarkko
> 
> right you are.  OP seemed to be specifically asking about a method on array
> objects though.  sorry for noise.

Yeah, the built in functions where exactly what I was looking for.

-- 
Bob Aman


More information about the Rails mailing list