Basically, I'm a little stuck here. I'm using Rails 3.x.x.. The code I'm using now is as follows
@email_reminder = ToDo.where(:reminder => true, :deadline_date =< Date.today)
The code above obviously won't work. I googled around but almost every solution was a Rails 2.x.x. solution. What's the most efficient way of finding all my "email_reminders" if today's date is past OR is the deadline_date?
(doesn't have to be similar to method used above but it would help if you provide a way using a similar method)
Thanks in advance