I have an ActiveRecord model that has a date attribute. Is it possible to utilize that date attribute to find by Year, Day and Month:
Model.find_by_year(2012)
Model.find_by_month(12)
Model.find_by_day(1)
or is it simply possible to find_by_date(2012-12-1).
I was hoping I could avoid creating Year, Month and Day attributes.