我有以下内容:
var folderEmail = Gmail.folderEmails.find(function (join) {
return (join.get('folder').id === starredFolder.id &&
join.get('email').id === thisEmail.id)
});
folderEmail.destroy( {data: { folder: starredFolder, email: thisEmail }});
Gmail.folderEmails.remove(folderEmail);
当folderEmail.destroy()
发生时,它会向控制器发送一个 HTTP Delete 请求,并在控制器中,作为我的参数,我得到{"object Object"=>nil, "action"=>"destroy", "controller"=>"folderjoins", "id"=>"67"}
. 为什么我会得到"object Object" => nil
?