in this screencast Ryan Bates showed how to implement reputation system from scratch. But is there any way to give the current_user only 1 vote, and check whether user has already voted for application, and if yes, restrict the possibility of voting?
I think something like this in user.rb should work, but I don't know ho to exactly write it
def has_one_vote
Restrict amount of user votes to 1
end
Thanks