More advanced Ruby on Rails implementation of consumption-tracker