So I’m trying to grab birthdays for the current month. But I have to do
some magic inside a condition and this messes up AR. Here is what I am
@upcoming_birthdays = People.find(:all, :conditions =>
“birthdate.strftime(’%M’) = Time.today.strftime(’%M’)”) %>
Of course find is passing this directly and DQL doesn’t know what to do
with it. What is the correct way to pass this condition? Thanks!