def last_date find :first, :order => "date DESC" end
def first_date find :first, :order => "date ASC" end
Usage:
@first_day = Day.first_date @last_day = Day.last_date
...i guess something like this, but no guaranties
def last_date find :first, :order => "date DESC" end
def first_date find :first, :order => "date ASC" end
Usage:
@first_day = Day.first_date @last_day = Day.last_date
...i guess something like this, but no guaranties