Re: Validations problem

Viorel
Sat, 10 Apr 2010 16:06:06 -0000

You should remove    :null => false. With it, you have a 0 in any new
record, so   validates_presence_of :employee_id  will return true.