diff --git a/assets/javascripts/app.coffee b/assets/javascripts/app.coffee index 8e68aa5..eaf0022 100644 --- a/assets/javascripts/app.coffee +++ b/assets/javascripts/app.coffee @@ -19,7 +19,7 @@ require ['common'], () -> app.addRegions({ 'MainRegion': '#main' }) -### + app.MainRegion.show( new TodoView({ 'model': new TodoModel({ @@ -29,4 +29,4 @@ require ['common'], () -> }) ) - console.log app.MainRegion### \ No newline at end of file + console.log app.MainRegion \ No newline at end of file diff --git a/assets/javascripts/app/collections/TodoList.coffee b/assets/javascripts/app/collections/TodoList.coffee index a2c9d90..0e29de9 100644 --- a/assets/javascripts/app/collections/TodoList.coffee +++ b/assets/javascripts/app/collections/TodoList.coffee @@ -1,6 +1,6 @@ define [ 'backbone', - '/javascripts/app/models/Todo' + 'j/app/models/Todo' ], (Backbone, TodoModel) -> TodoListCollection = Backbone.Collection.extend({ diff --git a/assets/javascripts/app/views/collections/TodoList.coffee b/assets/javascripts/app/views/collections/TodoList.coffee index 2d2beb1..0d012a7 100644 --- a/assets/javascripts/app/views/collections/TodoList.coffee +++ b/assets/javascripts/app/views/collections/TodoList.coffee @@ -1,8 +1,8 @@ define [ 'backbone', - 'marionette', - '/javascripts/app/views/items/TodoListItem', - 'hbs!/templates/app/collections/TodoListTemplate' + 'backbone.marionette', + 'j/app/views/items/TodoListItem', + 'hbs!t/app/collections/TodoListTemplate' ], (Backbone, Marionette, TodoListItemView, TodoListTemplate) -> TodoListView = Marionette.CollectionView.extend({