" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

How to work with CSRF token while AJAX posting in Rails 3.1.

Posted on November 23rd, 2015 by DEBADATT PRADHAN

Hi Railities Here is a tip on how to work with CSRF token while ajax posting in rails 3.1. Query:- While we are doing AJAX post , automatically the current session destroys in rails 3, and the current user automatically logged out. Description for the query:- While creating a rails app it creats a CSRF(Cross […]

How To Abort A AJAX Call Before Calling The Same Again

Posted on November 23rd, 2015 by MANISH AGARWAL

I want to show auto search result below the search box as the user types in the letters and not wait for a button click (similar to Google Instant search) . So wjhat I need to do is make an AJAX call and get the data from the database as the user is typing. In […]