I am doing the blogger client application and I am hosting my json file from my server with domain name using this code App.Store = DS.Store.extend({
revision: 12,
adapter: DS.RESTAdapter.extend({
host: ‘.xyz Domain Names | Join Generation XYZ’
})
});
I got this error
GET http://localhost/posts/1 404 (Not Found) jquery-1.9.1.js:8526
Error while loading route:
Class {id: “1”, store: Class, _reference: Object, currentState: Object, _changesToSync: Object…}
ember.js:415
Uncaught Error: Attempted to handle event loadedData on App.Post:ember268:1 while in state root.error. ember-data.js:4029
Uncaught App.Post:ember268:1
Thanks a lot for the reply, If I din’t use the namespace, I am getting 405 method is not allowed error…Do you have any working sample of the same type??
Sorry i dont have any online app to show it. Are your app and api on the same server ? can you check the http request and what url ember uses to get the content ?
No, my app is in localhost and the api is in my domain server. I tired this App.Store = DS.Store.extend({
revision: 12,
adapter: DS.RESTAdapter.extend({
url: ‘http://domain.com’
namespace: ‘rest/of/the/url/if/you/need/to’
})
});