Added average_rating controller helper.