Leaderboard in Ruby on Rails and AngularJS