I have an event listing site where i'm currently listing events occuring today
by doing:
def load_today_events
@today_events = Event.find(:all, :conditions => ['start_date =?', Date.today])
end
This works perfectly well.
I've recently introduced an end_date
for events spanning more than one day.
Obviously, with the above code once the start_date
has passed the event disappears from my listing.
I may be having a mental block here, but I can't for the life of me figure out how to show events that's start date has passed but end date has not.
I think I want something along the lines of:
find events where date.today
is equal to or between start_date
or end_date
Any ideas how best to approach this?