Conferences.incoming is defined on the model as scope: scope :upcoming, (-> { where('end_date >= ?', Date.current) }) Conference.past scope :past, (-> { where('end_date < ?', Date.current) })