Rails and Angular one page App to manage a cart of books