My understanding is that the CollectionView is created dynamically when I use the each helper in the template. Since the content of my ArrayController is an array, I’m not sure why the CollectionView is complaining.

In your view the controller variable is referring to the controller from where the view is rendered. So in the view controller is the application controller “(generated application controller)” Rename your controller var to something else and the error message is gone.

But there still a problem, the ul is empty and I don’t know why.

PS: I forked the gist to show you the modification and I also added some debug directives in application creation.

What I’ve said previously was a little bit wrong (I’m still a newbie with ember) If the error message was gone it’s because the new controller var ‘myController’ in template is null. The template doesn’t know anything about variables outside of the controller that they are rendered from. So myController is unknown.

I’m just learning as well so this exercise has been very helpful. Thanks again!

EDIT: I just noticed that the sorting isn’t actually working. Any idea why?

EDIT: Oh, interesting. The one change that I made to your example broke mine. I used {{#each model}} instead of just plain {{#each}} or {{#each this}}. I guess that made the template pull directly from the model property instead of from the array controller which is responsible for the sorting.