On Tue, Apr 27, 2010 at 4:07 PM, Joshua Martin <josmar52...@gmail.com> wrote: > I have a datetime field in the database. How do I find records for a > particular date regardless of the time of day? > > The method I'm trying does not work.. tasks.find(:all, :conditions => ["date > == ?", Date.today])
You might want to look at http://github.com/radar/by_star Just discovered this in the past few days. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.