文字列を返すだけのRailsメソッドがありますが、何らかの理由でsuccessJavaScriptで戻り値を取得できないようです。
def count
render :nothing => true
return "success"
end
$.post("/home/count",
function(data) {
document.getElementById("test_call_button").value = 'Calling...' + count;
});
によって返されるオブジェクト$.post("/home/count");のは。responseTextです" "。