Javascript EmberJS类型错误:对象#<;对象>;没有方法';拒绝';

Javascript EmberJS类型错误:对象#<;对象>;没有方法';拒绝';,javascript,jquery,methods,ember.js,Javascript,Jquery,Methods,Ember.js,我用ember安装了这个应用程序,我收到了一条奇怪的消息: TypeError:Object#没有方法“拒绝” 以下是我的EmberJS应用程序配置: App = Ember.Application.create(); App.Store = DS.Store.extend({ revision: 12, adapter: DS.RESTAdapter.extend({ url: 'http://localhost:8080', namespac

我用ember安装了这个应用程序,我收到了一条奇怪的消息:

TypeError:Object#没有方法“拒绝”

以下是我的EmberJS应用程序配置:

App = Ember.Application.create();

App.Store = DS.Store.extend({
    revision: 12,
    adapter: DS.RESTAdapter.extend({
        url: 'http://localhost:8080',
        namespace: '6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b'
    })
});

App.Router.map(function() {
    this.resource('collections');
});

App.IndexRoute = Ember.Route.extend({
    redirect: function(){
        this.transitionTo('collections');
    }
});

App.CollectionsRoute = Ember.Route.extend({
    model: function(){
        return App.Collection.find();
    }
});

App.Collection = DS.Model.extend({
    name: DS.attr('string'),
    createdAt: DS.attr('date')
});

有什么想法吗(

问题可能是您使用了错误的余烬/余烬数据文件组合…这应该可以:

您可以在此处获得最新版本:


希望它能帮上忙(谢谢:)但这实际上是我使用的组合:(奇怪……这里有一个组合非常好用的小提琴。你能设置一个JSFIDLE显示你的index.html文件和你正在加载的内容吗?不:(奇怪的是,对于不需要ember数据的基本内容,它可以完美地工作,就像他们网站上的指南一样。知道:ssorry,我已经更新了我的答案…这个()是您需要使用的ember.js版本,以便正确地工作。好的,不用担心:)已经工作了;感谢您的帮助!