caleywoods/rubeddit — Issue #6: Roadmap
Author: caleywoods
Created: 2011-11-07 17:07:35+00:00
State: open

I'm rolling this into the README soon but wanted to spell something out.

1. Fix voting
* There's an open issue for this already. If we don't want to use the thumbs_up gem then we can roll our own and make sure associations are working correctly. Let's check for existance of a vote in user_votes_links for ```current_user.id``` in the table and compare the vote_type (better name?) column. We'll say 0 for upvote, 1 for downvote.

* Table would then be ```user_votes_links```:
```user_id```, ```link_id```, ```vote_type```

*If trying to +1 check for ```vote_type``` == 0.