I have an app that's a simple clone of reddit. Using Devise you can sign up and submit links and vote on them. I started out trying vote\_fu\_rails\_3 but was having a db issue and some other troubles so I went with my own voting solution which just records the link\_id, user\_id and has timestamps.

I'm trying to implement a way for the votes on your links to count towards a total 'karma' score, ala reddit. Your karma would be your positive votes less your negative votes in total. I'm thinking I need to write a method in the User model (perhaps link model?)

Right now there is no field in the users table for 'karma' or 'link\_score' or anything like that. Maybe adding a simple integer column to the Link table and adding or subtracting to it when it's voted on would allow me to do this?

Right now to display the number of votes i'm using link.votes.count which may not be correct (maybe it shows total votes and not total as Up - Down).

[Github Link](http://github.com/caleywoods/rubeddit)