2014-03-24 47 views
2

我想我已經擁有了一切。但是,無論我不能用'需求:「運費」,「結賬」在,因爲他們根本就沒有發現支付控制器,看到此錯誤:Ember.js:ObjectControllers not found

Error while loading route: Error: <[email protected]:article/payment::ember1670> needs [ controller:checkout, controller:shipping ] but they could not be found 

有趣的部分是,我已經訪問過的路線早因爲它是我結帳過程的一部分。看看路由器:

this.resource('articles', {path: '/product'}, function() { // to fill the articles navigation slider 
     this.resource('article', {path: '/:article_id'}, function() { // article information slider 
      // (...) 
      // we have always an active article, thats why the shipping is underneath 'article' 
      this.route('shipping', {path: '/verzending'}); 
      this.route('checkout', {path: '/betaalwijze'}); 
      this.route('payment', {path: '/afrekenen'}); 
     }); 
    }); 

所以我訪問:shipping然後checkout然後payment並且得到錯誤。這些控制器都是ObjectControllers。

文件夾結構:

Folder structure

航運控制器我用needs到包括不工作的ArrayController。也許它必須是那些ObjectControllers?

在此先感謝您的任何提示!

編輯:使他們Ember.Controller沒有任何作用。

回答