I have a model (Entries) with five years worth of records (one record per day). I need a method that, when passed a date object such as 2011-12-25 00:00:00
, will show me ALL the records that have happened on 12/25 (querying against the :created_at
column), regardless of the year or time that's passed.
RoR 3.0.9 / Ruby 1.9.2p290