我有一个将整个表单提交到服务器的按钮。有时服务器会以错误响应,用户需要更改/更新字段并再次提交(常识?)。我正在使用这个(咖啡脚本):
@transaction.commit()
但是,正如我从 Ember 数据中看到的那样 - DS.Transaction https://github.com/emberjs/data/blob/master/packages/ember-data/lib/system/transaction.js#L161
...
Once you call `commit()` on a transaction, you should not re-use it.
When a record is saved, it will be removed from this transaction and
moved back to the store's default transaction.
那么,如何在不刷新和填写所有数据的情况下再次提交表单呢?