this is my Error
POST http://localhost/saleserp/api/locations.json 501 (Not Implemented) vendor.js:9726
true embersite/adapters/application.js:73
success embersite/controllers/lo
this is my code
ajaxError: function(jqXHR) {
var error = this._super(jqXHR);
console.log(jqXHR && jqXHR.status === 501);
if (jqXHR && jqXHR.status === 501) {
var response = Ember.$.parseJSON(jqXHR.responseText),
errors = {};
if (response.errors !== undefined) {
var jsonErrors = response.errors;
forEach(Ember.keys(jsonErrors), function(key) {
errors[Ember.String.camelize(key)] = jsonErrors[key];
});
}
return new DS.InvalidError(errors);
} else {
return error;
}
},
var get = Ember.get, forEach = Ember.EnumerableUtils.forEach;