我想写如下的包含验证器:
validates :application_date,
inclusion_of: { in: Date.today..20.years.from_now }
# Schema
# application_date :date
但我明白了
bad value for range
我想写如下的包含验证器:
validates :application_date,
inclusion_of: { in: Date.today..20.years.from_now }
# Schema
# application_date :date
但我明白了
bad value for range