Reservation Type System w/ Validation - Rails 3.0
问题 What would be the best approach to trying to "validate" uniqueness of dates for object. -- So for example, I have a Room, that can only have 1 person in it at a time. A User can book this Room in advance. Currently the Room is booked from the 1st of March to the 5th of March. I want to prevent anyone from booking again on those dates. So if someone attempts to book a room from the 25th of Feb to the 2nd of March, I need to tell them they cannot, because the room is fully booked. -- I am using