Example of an AJAX CRUD in Rails