I am making a Calendar Model for my Product model because i need a list of products to belong to only one Date whether past or present products. I want my users to be able to search for a specific date of a product when i put a search engine in and pagination. Is it a good idea to do this or is there a better way? Does Rails have a way to not make a model and still give many products one date?
I am making a Calendar Model for my Product model because i need a
Share
Unless you wish to store something else in the Calendar model you should just store the date as a field of the products model. Then you can find_all_by_date.