My desired end result is that I want to group events on the events#index page by 3 time periods: Today, Tomorrow and This week. Ideally, it should be sorted by the visitor's time zone, but, the primary use case is EST if that matters.
It's just a fairly simple Rails app that you can check out here: https://github.com/moizk/events
I'm fairly new to Rails, so I assume this sort of thing is handled by the Controller, and creating three instance variables instead of:
@events = Event.all
It should be something like:
@todaysevents = Events.where(some logic in here)
@tomorrowsevents = Events.where(some logic in here)
I just can't figure out what that logic should be.