active record reputation system à la @railscasts

A number of Haikus have already been added to our application and we’d like users to be able to vote for them by either voting them up or down. Our application has no voting system in place yet so how can we add this feature? We could write this from scratch but instead we’ll use a gem called Active Record Reputation System . This allows us to easily calculate an average user rating, sum up the number of votes and more and here we’ll show you how it get it working in our application.