Hi all-
I am creating a site similar to the infamous Woot in one particular way: I would like to rotate through products at a rate of one per day. I am using RoR, and would prefer to dynamically choose a product, and not have to enter one each day. So here are the requirements:
1) Get a new product each day
2) Select dynamically from a table
3) Make sure not to select the same product twice
Thats about it. In the products table, I currently have a boolean called listed
which will mark if the product has been listed. My question is, should I run some kind of database job to choose a product for that day or is there some way I can like hash the date and come up with an id that the app will display until the date changes.
Thanks for the time.