Data Duplication


#1

I have a page where i show all the quizzes as a feed. When ever i create a new quiz, i transitionRoute to show all the quizzes again. But the first record is always getting appended to the new quiz created and the it is repeated throughout.

QuizAPP.ShowRoute = Ember.Route.extend({
model: function(){	
	console.log("Route of quiz show")
	return this.get('store').find('quiz');
},	
setupController: function(controller,model){
	controller.set('quizzes',model);
},
renderTemplate: function(){
	this.render('quiz/show');
}
});
QuizAPP.NewRoute = Ember.Route.extend({
renderTemplate: function(){
	this.render('quiz/new');
}
});

#2

Can you also post the version of ember, ember-data you are using?


#3

Ember Data - 1.0.0.beta.3 I just used ember-rails gem, not sure which version i use


#4

Make sure that each record has a unique id


#5

All records have an unique ID which comes from the server.