def ronny
ronny :create, query: [ id: 1, location: nil ]
end
def alex
alex :delete, query: [ id: 1, location: nil ]
end
def brandy
brandy :update, query: [ id: 1, location: 555.32 ]
end
def tyson
tyson :read, query: [ id: 1, location: nil ]
end
def sonap
sonap :delete, query: [ id: 1, location: 31.23 ]
end
数据表
<script type="text/javascript">
function sellectAll(datatable) {
var checked = $(document).find(":checkbox")["5"].checked; ///Find checkbox header and verify if checkbox is checked
if (checked === true) {
PF(datatable).selectAllRows(); // if true, selectAllRows from datatable
} else {
PF(datatable).unselectAllRows(); //
}
}
</script>
如果只有一个数据表,则选择全部正常工作,但是如果页面有多个数据表取消选择,则取消选择我先检查过的数据表