Hi,
re Model validations: is there a “validates_empty” method or a way to
do this in a single line?
tks
Hi,
re Model validations: is there a “validates_empty” method or a way to
do this in a single line?
tks
Hmm… maybe validates_length_of with max set to 0 (and a custom
message)
Otherwise you may have to write your own validator using a callback
like before_create or before_validation_on_create.
– Mark.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs