I\'m trying to figure out how to pull all the records in my set where their fields \"publish\" is true and \"expires\" is less than today. I have the following but i dont think
Try this:
@announcements = Announcement.where("publish = ? AND expires < ?", true, Date.today)