2 ms·
You send the response as json and act upon it. Have a look at this - http://jsbin.com/depuvelixu/edit?html,js,output http://jsbin.com/depuvelixu/edit?html,js,ou
by boundlessdreamz 11y ago
You send the response as json and act upon it. Have a look at this - http://jsbin.com/depuvelixu/edit?html,js,output http://jsbin.com/depuvelixu/edit?html,js,output
The json the code fetches is static but it can be served by a rails app. The DOM manipulation gets painful which is the reason people adopt JS frameworks.