为什么我得到对象用户没有方法'_create'ember?

时间:2013-11-15 04:27:43

标签: ember.js

尝试使用fixtureadapter创建用户时出现以下错误:

Uncaught TypeError: Object user has no method '_create' ember-data.js?body=1:1580
DS.Store.Ember.Object.extend.createRecord ember-data.js?body=1:1580
EmberGym.UsersCreateController.Ember.ObjectController.extend.actions.save users_create_controller.js?body=1:7
Ember.ActionHandler.Ember.Mixin.create.send ember.js?body=1:14740
(anonymous function) ember.js?body=1:33233
Backburner.run ember.js?body=1:5609
Ember.run ember.js?body=1:5974
ActionHelper.registeredActions.(anonymous function).handler ember.js?body=1:33231
(anonymous function) ember.js?body=1:19340
Ember.handleErrors ember.js?body=1:578
(anonymous function) ember.js?body=1:19332
jQuery.event.dispatch jquery.js?body=1:5096
elemData.handle jquery.js?body=1:4767

https://github.com/ecl1pse/ember-gym

任何帮助?

1 个答案:

答案 0 :(得分:2)

遗憾的是旧版本的ember-data ..