我設置了一個簡單的Ember Twiddle向您展示我嘗試更新模型時發生的錯誤。 我使用ember-cli-mirage來模擬數據是相當可觀的。 根據文檔,我創建了一個應該處理PUT請求的速記路由。 確實如此,但與錯誤:Your handler for the url /api/shops/1 threw an error: Cannot convert undefined or null to
我學習餘燼和鐵軌從本教程https://dockyard.com/blog/2014/05/09/building-an-ember-app-with-rails-part-3 我理解,這是一個很老的教程和一些代碼已經不適用。我能夠在學習過程中解決大部分錯誤。但是,有一個錯誤我不知道如何解決。 我有這樣一段代碼: import DS from 'ember-data';
export defa