I\'m trying to use the following line in my controller to capture all tasks due less than a week from the current date:
@due_this_week = current_user.tasks.where
Should be:
@due_this_week = current_user.tasks.where(due_date: 1.week.ago..Date.today)