abuiles / ember-cli-101-errata

18 stars 4 forks source link

Controller => ArrayController at page 205 #167

Closed stefanbruvik closed 9 years ago

stefanbruvik commented 9 years ago

When using Ember.Controller.extend as written in the code example at page 205, Ember throws an error: Uncaught Error: Assertion Failed: ArrayProxy expects an Array or Ember.ArrayProxy, but you passed object

Changing to Ember.ArrayController.extend fixes this.

(I'm using Ember 1.10.0)

abuiles commented 9 years ago

Are you reading on an ebook reading? Do you know which is the PDF page?

abuiles commented 9 years ago

This should be fixed now that we don't depend on Array Controllers.