Rails 6.1 adds support for validating numeric values that fall in a range
The numericality
validation helper now accepts in:
as an option for which the value must be a range.
https://blog.saeloun.com/2021/02/05/add-validate-numericality-in-range
Comments
WARNING: this feature has been merged to main branch, but as of now (September 2021) has not been released yet!
Post a comment