1
時拋出的錯誤,我有以下途徑:灰燼擊中瀏覽器的前進和後退按鈕
Redb.Router.map()->
@resource "forms", ->
@route "new"
@route "show", path: "/:form_id"
我有相關的模板和控制器。通過link-to
幫手產生
使用環節,一切工作正常,但是,例如當我#/forms/1
和回擊去#/forms
它給這些錯誤:
Assertion failed: The initializer 'store' has already been registered
Assertion failed: The initializer 'dataAdapter' has already been registered
Assertion failed: The initializer 'injectStore' has already been registered
然後,當我打前進按鈕我得到:
Error while loading route: TypeError: Cannot set property 'store' of undefined
at DS.Store.Ember.Object.extend.modelFor (http://localhost:3000/assets/ember-data.js?body=1:2726:19)
at DS.Store.Ember.Object.extend.find (http://localhost:3000/assets/ember-data.js?body=1:1730:17)
at Ember.Route.Ember.Object.extend.findModel (http://localhost:3000/assets/ember.js?body=1:34817:23)
at Ember.Route.Ember.Object.extend.model (http://localhost:3000/assets/ember.js?body=1:34806:17)
at getModel (http://localhost:3000/assets/ember.js?body=1:33269:45)
at model (http://localhost:3000/assets/ember.js?body=1:33197:17)
at invokeCallback (http://localhost:3000/assets/ember.js?body=1:9428:19)
at publish (http://localhost:3000/assets/ember.js?body=1:9098:9)
at Promise.publishFulfillment (http://localhost:3000/assets/ember.js?body=1:9518:7)
at Object.DeferredActionQueues.flush (http://localhost:3000/assets/ember.js?body=1:5651:24)
Error while loading route: TypeError: Cannot set property 'store' of undefined
at DS.Store.Ember.Object.extend.modelFor (http://localhost:3000/assets/ember-data.js?body=1:2726:19)
at DS.Store.Ember.Object.extend.find (http://localhost:3000/assets/ember-data.js?body=1:1730:17)
at Ember.Route.Ember.Object.extend.findModel (http://localhost:3000/assets/ember.js?body=1:34817:23)
at Ember.Route.Ember.Object.extend.model (http://localhost:3000/assets/ember.js?body=1:34806:17)
at getModel (http://localhost:3000/assets/ember.js?body=1:33269:45)
at model (http://localhost:3000/assets/ember.js?body=1:33197:17)
at invokeCallback (http://localhost:3000/assets/ember.js?body=1:9428:19)
at publish (http://localhost:3000/assets/ember.js?body=1:9098:9)
at Promise.publishFulfillment (http://localhost:3000/assets/ember.js?body=1:9518:7)
我是Ember的新手,我正在努力學習它。誰能幫我這個?