I had to read every stack overflow question regarding my problem and couldn't find a solution. I am very new to Ember and Node, so please bear with me.
The server responds with this format:
{
"_id" : "53fddf59d72f9b4d3a3e164a"
"about" : [
{"from" : "foo"},
{"text" : "bar"},
... ]
}
My model looks like this:
App.About = DS.Model.extend({
from : DS.attr('string'),
text : DS.attr('string'),
...
}
Adapter and serializer:
App.ApplicationAdapter = DS.RESTAdapter.extend({
host: 'http://localhost:3000'
});
App.ApplicationSerializer = DS.JSONSerializer.extend({
primaryKey: '_id'
});
And my route:
App.AboutRoute = Ember.Route.extend({
model: function() {
return this.store.find('about');
}
});
Use of rudders:
<script type="text/x-handlebars" data-template-name="about">
<p>{{from}}</p>
</script>
The route will be displayed, but the console will throw an error:
DEBUG: ------------------------------- ember.js: 3285
DEBUG: Ember: 1.3.0 ember.js: 3285
DEBUG: Ember Data: 1.0.0-beta.5 ember.js: 3285
DEBUG: : 1.3.0 ember.js: 3285
DEBUG: jQuery: 1.10.2 ember.js: 3285
DEBUG: ------------------------------- ember.js: 3285
→ route: application Object {fullName: "route: application" } ember.js: 3285
: id , push ember.js: 3285
→ controller: about Object {fullName: "controller: about" } ember.js: 3285
""
?!
Update:
Kingpin2k, , . . .