I am creating some Category in my rails app. I'd like to decide when the articles will be displayed based on the different peroids of time setting. I'm looking for a better way to do this, since I don't think that using gem whenever is needed under this circumstance.
The questions I would like to ask are:
1.how to set time period for Category
2.how to check the time period(maybe use between?) when conducting query,
3.all schedules can be displayed like a google calendar(use simple_calendar), the entire schedule will be showed in my backstage.
The solution I first come up with is to create two date column in Category and define begin time and end time.
Is there any better way to handle this? Is there any gem specifically for this purpose or this situation?