Re: [Rails] Correct way to search datetime column by date

2011-01-07 Thread Philip Hallstrom
On Jan 7, 2011, at 8:48 AM, Jim Burgess wrote: > Hi, > > I have a flight model. > I want to find all flights with a specific arrival airport, a specific > departure airport and which depart on a certain date. > > My problem is that the departure date is a datetime column in the db and > I wish

[Rails] Correct way to search datetime column by date

2011-01-07 Thread Jim Burgess
Hi, I have a flight model. I want to find all flights with a specific arrival airport, a specific departure airport and which depart on a certain date. My problem is that the departure date is a datetime column in the db and I wish to search this column by date (not datetime). I have written the