DOMを起動すると、「テンプレートが見つかりません」というエラーが発生します。これが私のコードです:
//javascripts/app/app.js
MyApp = Ember.Application.create();
MyApp.store = DS.Store.create({
revision: 4,
adapter: DS.RESTAdapter.create({ bulkCommit: false })
});
//javascripts/app/models/event.js
MyApp.Event = DS.Model.extend({
id: DS.attr('number'),
league_id: DS.attr('number')
});
//javascripts/app/controllers/event.js
MyApp.eventsController = Ember.ArrayController.create({
content: [],
init: function() {
this.content = jQuery.get('events.json');
}
});
//javascripts/app/views/events/list.js
MyApp.EventListView = Ember.View.extend({
templateName: 'app/templates/events/list',
eventsBinding: 'MyApp.eventsController'
});
//javascripts/app/templates/events/list.handlebars
{{#each events}}
{{view MyApp.EventListView eventsBinding='this'}}
{{/each}}
//app/views/events/index.html.erb
<script type='text/x-handlebars'>
{{ view MyApp.EventListView }}
</script>
このQ&Aで提案された修正の1つを試しましたが、うまく機能しませんでした。私が間違っていることは何ですか?