I would like to ensure that you can only click thumbs up or thumbs down once per table entry?
My visitors are not logged in, so my assumption is, I can check your IP, and using JSON send the info to the db to record IP address and the ID of that table entry. then if the user clicked thumbs up again, use JSON to do a quick SQL exists to determine if the IP and text ID exist. If not, then the thumbs up click goes through.
Seems like this is a tedious and non-elegant solution that will be slow and take up a lot of DB space. Any thoughts/help for improvement?
Using ruby 1.9.2, rails 3.1, jquery.