I have an event model which has a date attribute. What I would like to
do is add a class method to Event that tells me the next 10 upcoming
events such that they are ordered by date (closest to today first) and
that only events which have not yet occurred will be displayed. How
would I do this using find?
I have an event model which has a date attribute. What I would like to
do is add a class method to Event that tells me the next 10 upcoming
events such that they are ordered by date (closest to today first) and
that only events which have not yet occurred will be displayed. How
would I do this using find?