Carb tracker in ruby on rails