Cart application in ruby on rails