validates :password, :presence => { :on => :create },
:length => { :within => 4..40 }
and
validates :password, :presence => { :on => :create },
:length => { :within => 4..40, :on => :save }
I thought the default for a validation was :on => :save
which means on both :create and :update? But when I replace the first with the second specs start failing expected valid? to return false, got true
.
What's happening?