Rails ActiveRecord Query Date Range May 26, 2023 by Tarik Should be: @due_this_week = current_user.tasks.where(due_date: 1.week.ago..Date.today)