What are rails for implementing the max max validation module in Rails 3?
I have a model with min_age and max_age attributes.
The age can be in the range 0..100, but I also want to check the intersection values, I mean that max is greater than or equal to min
{:min_age => 0, :max_age => 0} => true {:min_age => 0, :max_age => 1} => true {:min_age => 1, :max_age => 0} => false
validation ruby-on-rails-3
astropanic Dec 11 '10 at 10:27 2010-12-11 10:27
source share