Research & Examples
http://www.tutorialspoint.com/ruby-on-rails/rails-and-ajax.htm
Ajax stands for Asynchronous JavaScript and XML. Ajax is not a single technology; it is a suite of several technologies. Ajax incorporates the following:
XHTML for the markup of web pages
CSS for the styling
Dynamic display and interaction using the DOM
Data manipulation and interchange using XML
Data retrieval using XMLHttpRequest
JavaScript as the glue that meshes all this together
Ajax enables you to retrieve data for a web page without having to refresh the contents of the entire page. In the basic web architecture, the user clicks a link or submits a form. The form is submitted to the server, which then sends back a response. The response is then displayed for the user on a new page.
When you interact with an Ajax-powered web page, it loads an Ajax engine in the background. The engine is written in JavaScript and its responsibility is to both communicate with the web server and display the results to the user. When you submit data using an Ajax-powered form, the server returns an HTML fragment that contains the server's response and displays only the data that is new or changed as opposed to refreshing the entire page.
For a complete detail on AJAX you can go through our
AJAX Tutorial
http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html
http://www.gotealeaf.com/blog/the-detailed-guide-on-how-ajax-works-with-ruby-on-rails
http://richonrails.com/articles/basic-ajax-in-ruby-on-rails
https://www.railstutorial.org/book/following_users
http://stackoverflow.com/questions/5550188/simple-ajax-example
Videos
AJAX and RoR
http://youtu.be/yB2wZdvw07E
Different ways of implementing AJAX in your Ruby on Rails applications
http://youtu.be/n6eE-nd3ci4
Tid Bits
Testing with AKAX
http://robots.thoughtbot.com/automatically-wait-for-ajax-with-capybara
--------------------------------------------
`form_tag :remote` defaults to AJAX
http://www.rubydoc.info/docs/rails/4.1.7/ActionView/Helpers/FormTagHelper:form_tag
While looking at this documentation I saw the part:
:remote - If set to true, will allow the Unobtrusive JavaScript drivers to control the submit behavior. By default this behavior is an ajax submit.
This could be useful when we go to do Ajax calls.