Skip to content

Instantly share code, notes, and snippets.

@jethrokuan
Created July 22, 2012 16:29
Show Gist options
  • Save jethrokuan/3160198 to your computer and use it in GitHub Desktop.
Save jethrokuan/3160198 to your computer and use it in GitHub Desktop.
Error: assertion failed: an Ember.CollectionView's content must implement Ember.Array. You passed Ol.SubjectsController
<script type="text/x-handlebars">
{{view Ol.ListSubjectsView}}
</script>
<h1>Subjects</h1>
{{#each Ol.SubjectsController}}
<li>{{subject}}</li>
{{/each}}
{{outlet}}
Ol.ListSubjectsView = Ember.View.extend({
templateName: 'subjects/list',
subjectsBinding: 'Ol.SubjectsController'
});
Ol.SubjectsController = Ember.ArrayController.extend({
content: Ol.store.findAll(Ol.Subject)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment