当我通过capybara-webkit执行ajaxDELETE请求时,我发现它们没有向控制器发送数据参数。但是,当我使用selenium运行测试套件时,确实发送了数据参数(并且测试通过了)。我的代码如下所示: if confirm "Are you sure you want to deleteid = $('a.d
我想通过发出一个json请求来删除一行,但不幸的是代码无法工作。function deleteRecord(id) { // === Show confirmation alert to user before delete aif (ans == true) { $.ajax({ url: location.pathna