I have a Car, Service and Reservation classes. A Car has_many services and reservations. Both services and reservations have "from" and "to" dates, creating a range, which can´t overlap with other reservation's and service's ranges.
I want to filter cars by date ranges. I mean, I want to introduce "from" and "to" dates through date selectors and a submit button in the index, and that the index itself shows me the cars that don´t have any service or reservetion in that period of time.