Closed Manumie closed 10 years ago
Updates:
I set a breakpoint on RestAdapter.BuildURL
and checked:
> this.url
""
> url
[""]
So my setting in app/adapters/application.js
is ignored.
As a matter of fact, I tried setting a breakpoint on the line
url: 'http://localhost:4444'
but the debugger doesn't pause.
I don't get it...
There is an issue with the way ember app kit resolves types in conjunction with how epf guesses the names of types. Try explicitly adding a typekey property to the model class:
Post.reopenClass({
typeKey: 'post'
})
There is an issue with the way ember app kit resolves types in conjunction with how epf guesses the names of types. Try explicitly adding a typekey property to the model class:
Post.reopenClass({
typeKey: 'post'
})
There is an issue with the way ember app kit resolves types in conjunction with how epf guesses the names of types. Try explicitly adding a typekey property to the model class:
Post.reopenClass({
typeKey: 'post'
})
Thanks for your tip : I thought the model)s
thing might be produced by the resolver.
Adding typeKey: 'post'
in my model, the route is now localhost:8000/quotes
Still, EPF keeps hitting the API on localhost:8000
whereas it should be localhost:4444
How should I set the url
property of the adapter ?
Sorry for the delayed response. I believe that if you define the adapter in app/adapters/main.js
(instead of application.js) it will fix it.
I'm testing EPF in a dummy application that I got working with Ember Data.
I'm using Ember App Kit.
I have a simple route:
The app hits a basic REST API (node + express) on http://locahost:4444
When my app enters the
/quotes/
route, I get this error:The Ajax request from EPF RestAdapter is sent on
http://localhost:8080/model)s
that is the app's url with the weird routemodel)s
I have tried setting the url as advised here:
I've also tried:
None worked.
What am I missing ?