Scrum: Top Ten Signs You’re Doing It Wrong Filed under: “you gotta be kidding me” — Patent issued for Page Up Page Down
Aug 22

I have just introduced the “has_karma” mixin to VoteFu. It aims to assign a karma score to the owners of voteable objects. This is designed to allow you to see which users are submitting the most highly voted content. Currently, karma is only “positive”. That is, +1 votes add to karma, but -1 votes do not detract from it.

1
2
3
4
5
6
7
8
9
10
11
class User 
  has_many :posts
  has_karma :posts
end
 
class Post
  acts_as_voteable
end
 
# in your view, you can then do this: 
Karma: <%= @user.karma %>

This feature is new and probably going to be enhanced significantly, but useful enough that I’m releasing it now.

close Reblog this comment
blog comments powered by Disqus