validate date tru timestart,timeend

hi im new in ruby on rails development im just wonder if you guys can
help me with my little project which is a reservation system

i have a date,start_time and end_time and i want to validate if the time
is taken in the particular date. i read about scope validation validates
:date ,:uniqueness => { :scope => :timeEnd, :timeStart } but i guess i
have to do something else i think this is a implementation problem not
technically a logic problem or error bugs like that stuffs

do guys have suggestions for how can i solve this? thank in advance more
power to us all

read about it method call date_example.between?(start_date,end_date) this method verify if your date is on this range and return a boolean

check out more on apidock.com

thats it?