I am building a Lunch Ordering Module for my app and I have these models currently
Right now I am using a has_and_belongs_to_many on
What I need to have is a Meal of the Day as part of the Menu and I am thinking I should use a has_many through:
But I can’t think how to structure this correctly
My goal is to have the cafeteria be able to turn on and off meals and drinks on the menu based on availability, so when the class orders lunch they can only choose the available meals.
However I have a Lunch Calendar that I want to show the meal of the day.
Suggestions on the proper Rails structure?