0

I'm new in Ember. I have an application using Ember and Ember-data, with a Rails backend using a Mongo database (Mongoid gem). I want to make a PUT request to update a many-to-many relationship, but I don't know how to: transactions, ajax jQuery function... Any help will be appreciated. Thanks in advance!

4

1 回答 1

2

在 Ember Data 1.0 beta 2 和更新版本中,只需调用save()模型将触发PUT将更改保存到后端的请求。如果您使用的是 Rails,我建议您使用DS.RESTAdapter.

于 2013-10-09T00:38:29.090 回答