Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Model id not being pass to PUT or DELETE call on .save()

$
0
0

@Frank wrote:

I am using 'ember-data-url-templates' in my model adapter.

When I do model.save(), or model.destroyRecord(), I get an error 400 because somehow the model id is not being passed to the network call.

Here is my adapter for the put

updateRecordUrlTemplate: ${ENV.API_ENDPOINT}/issues/template/{issueTemplateId}

When I do model.save() I get

As you can see, the model id is missing the the network call.

I don’t understand what I do incorrectly here. That’s something that is used throughout the app without any problem on other models.

If anyone could help, thanks!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles