Put the leaderboard into its own controller. I should have done this in the first place, but I got slightly confused. I'm still rather inexperienced in rails, and I wasn't quite sure about where things go. No harm done, I figured it out in the end. In any case, the place for it is most definitely *not* in application_controller.