Hi, I am trying to create a simple point system and display the total on
my index page. So I have my db basically setup like this:
id, body, created_at, user_id
id, post_id, user_id, created_at, value
So as you can see I am allowing other users to create points on the post
and my db will store who gave the point as well. “value” is the point
value which can either be -1 or 1. Basically I just want to add these
points together for a given post_id and display this value on my index.
Is this possible? If so, could you break the process down for me?
Thanks for your help in advance.