Rails - 1 entry in model per field, per day
- by Elliot
Lets say I have a food model
in the model, every day, people enter how many lbs of pizza/vegetables/fruit they eat.
each food is its own column
my issue is, I'd like it so they can only enter that in once (for that food type) every 24 hours (based on created_at).
This possible?