#each
wants to iterate over a list. Since you didn't give it an argument, it defaults to trying to iterate over your ListsController
. Unfortunately, since you didn't define it, the controller was auto-generated based on the plain Ember.Controller
. Thus, the error.
Two ways to fix this:
1) Make ListsController
into an ArrayController
App.ListsController = Ember.ArrayController.extend({});
2) Tell #each
to target your model instead of controller.
<div id="list">
<ul>
{{#each model}}
<li>{{ name }}</li>
{{/each}}
</ul>
</div>