Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

validations rails integer suprior to 0

validates :cooking_time, numericality: { greater_than: 0 }
 
PREVIOUS NEXT
Tagged: #validations #rails #integer #suprior
ADD COMMENT
Topic
Name
6+5 =