Created
July 22, 2012 16:29
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/x-handlebars"> | |
{{view Ol.ListSubjectsView}} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ol.ListSubjectsView = Ember.View.extend({ | |
templateName: 'subjects/list', | |
subjectsBinding: 'Ol.SubjectsController' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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