Rails - 1 entry in model per field, per day

Posted by Elliot on Stack Overflow See other posts from Stack Overflow or by Elliot
Published on 2010-03-20T12:39:25Z Indexed on 2010/03/20 12:41 UTC
Read the original article Hit count: 312

Filed under:

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?

© Stack Overflow or respective owner

Related posts about ruby-on-rails