I have an application that involves absence records for employees.
I need to ensure that the start and end dates for each record don\'t overlap.
So for example,
There is a gem called validates_overlap which allows you to easily validate date range overlaps. You can also use scopes on the validation.