Rails RESTful JSON API with some front-end AJAX to make a single-page app based on CRUDing books