A shopping cart exercise with Rails 4