{"action":"closed","issue":{"url":"https://api.github.com/repos/wppurking/ember-logs/issues/10","labels_url":"https://api.github.com/repos/wppurking/ember-logs/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/wppurking/ember-logs/issues/10/comments","events_url":"https://api.github.com/repos/wppurking/ember-logs/issues/10/events","html_url":"https://github.com/wppurking/ember-logs/issues/10","id":106706604,"number":10,"title":"ember.js 与 rails 之间如何进行数据批量保存/更新?","user":{"login":"wppurking","id":448364,"avatar_url":"https://avatars.githubusercontent.com/u/448364?v=3","gravatar_id":"","url":"https://api.github.com/users/wppurking","html_url":"https://github.com/wppurking","followers_url":"https://api.github.com/users/wppurking/followers","following_url":"https://api.github.com/users/wppurking/following{/other_user}","gists_url":"https://api.github.com/users/wppurking/gists{/gist_id}","starred_url":"https://api.github.com/users/wppurking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wppurking/subscriptions","organizations_url":"https://api.github.com/users/wppurking/orgs","repos_url":"https://api.github.com/users/wppurking/repos","events_url":"https://api.github.com/users/wppurking/events{/privacy}","received_events_url":"https://api.github.com/users/wppurking/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wppurking/ember-logs/labels/%E6%9C%89%E7%BB%93%E8%AE%BA","name":"有结论","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-16T06:14:16Z","updated_at":"2015-09-16T06:20:01Z","closed_at":"2015-09-16T06:20:01Z","body":"现在刚刚熟悉 ember.js 的时候要编写批量保存的时候, 思路是想着在页面上为 checkbox 设置自己的 name 属性进行提交, 但实际上应该将提交的属性名字交由 ES.Model 去处理. 我没有在 Ember Data 中找到这样对批量更新的支持, 所以两种方式:\r\n\r\n1. 将批量变为借用 Ember Data 的 Model 中每一个的 save. \r\n2. 通过 Ember Data 的 Model 收集数据, 然后 `ic-ajax` 进行自行提交, 但需要自行处理 DS.Model.isDrity 的问题\r\n这两种方法各有优点, 暂时还没办法直接替代."}}