All those validates_whatever_of :attr
macros do is call validates :attr, :whatever => true
.
The problem is you are using validate
and not validates
.
All those validates_whatever_of :attr
macros do is call validates :attr, :whatever => true
.
The problem is you are using validate
and not validates
.