Validate two dates, 2date - 1date > 1month

Hello,

I have a model with date field, i need to compare this date with current
system time. The date that inputed from web-form should be at least one
month later than current system time.

What the best way to do it?

Thanks

I would probably use something like this, assuming you have a Time
the_time:

1.month.ago >= the_time

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs