I have a Rails method that just returns a string, and for some reason, I can't seem to get the success
return value in the JavaScript.
def count
render :nothing => true
return "success"
end
$.post("/home/count",
function(data) {
document.getElementById("test_call_button").value = 'Calling...' + count;
});
The object that is returned by $.post("/home/count");
has a responseText
of " "
.