Exploring Javascript XHR in Rails