Added two migrations for voting, score for bounties and type for votes
Added vote controller and other useful files from rails generate. Also added vote routes
Empty controller functions.
Added statistics2 gem and updated other gems
Added confidence function from online example
Renamed type to vote_type because type is a reserved word for model inheritence. Doh.
Wired up voting buttons to create action for votes. Added create action
Added black and grey versions of the vote boxes to indicate vote state
Added voted_on? function that contains logic to test if a bounty has already been voted on by a user
Changed voted_on? to be dual purpose. Returns nil if no vote, returns vote_type (t/f) if vote.
The interface now loads colored vote images depending on if a bounty was voted on by currentUser
Vote controls will now not display if user is not signed in
Moved statistics calculation to be a part of bounty. Vote just calls this function
Every time someone votes, the bounty its associated with gets a new rating set on it
Bounty wasn't setting its rating property on save
Missing comma
Mistakenly used rating instead of score
Score now defaults to 0
VotesHelper now has update_bounty_scores method. It recalculates the 'score' of every bounty when a vote is made
Corrected typo bounty -> bounties