In one of my rail models, I have this check :only_integer:
validates :number, presence: true, numericality: { only_integer: true }
This check also allows for inputs such as +82938434with +-signs.
Which check should be used only for input permissions without + -just numbers?
source
share