apparently it’s because it wants the json from the server to be its own way and to be wrapped in article { }.
But even with that, when I try to do what the persisting records part of the guide says here:
var post = store.createRecord('post', {
title: 'Rails is Omakase',
body: 'Lorem ipsum'
});
var self = this;
function transitionToPost(post) {
self.transitionToRoute('posts.show', post);
}
function failure(reason) {
// handle the error
}
post.save().then(transitionToPost).catch(failure);
// => POST to '/posts'
// => transitioning to posts.show route
it doesn’t work, it returns a useless object, supposedly a promise, but no data is contained which I can pass on to my other route like the demo