Hi,
you would probably want to do this in yout Artist model
def active_dates
tour_dates.find(:all, :conditions => "date >
now()", :order=>'dates')
end
or with an eager load(@artist =
Artist.find :all, :include=>:tour_dates) (no attributes here
on :tour_dates)
def active_dates
tour_dates.select {|date| d >now()}
end
Charly