I have posted my code here.
On click of add button,i am trying to create new record in model but here it is adding blank record.
savecontact: function(){
App.Person.createRecord({
fname: this.get('firstName'),
lname: this.get('lastName'),
contactype: 1
});
this.get('store').commit();
},
Can anyone tell me why createRecord is adding blank record?