nullnullnull
nullnullnull

Reputation: 8189

Submitting with Ember Data

I used to be able to submit form data with:

submit: (event, view) ->
  @get('store').commit()

Now, after updating to Ember Data 1.0.0beta2, I get this error:

this.get('store').commit is not a function

I'm having trouble finding documentation about the new syntax to use here. Does anyone know how to handle this properly?

Upvotes: 0

Views: 64

Answers (1)

chopper
chopper

Reputation: 6709

In ED Beta 2 ou will have to save models directly, by calling either .save() or this.get('model').save()

Upvotes: 2

Related Questions