I have got a task to do knockout.js using ruby on rails. I want to send the javascript value to the controller. My index.html.erb is
<%= javascript_inclu
Any ajax http call will do.
$.ajax({ url: myUrl, dataType: 'json', async: false, data: myData, success: function(data) { //stuff } });
or
$.getJSON(muUrl, myData, function(data) { //stuff });