diff --git a/templates/app_view.coffee.erb b/templates/app_view.coffee.erb index 6183c42..218d289 100644 --- a/templates/app_view.coffee.erb +++ b/templates/app_view.coffee.erb @@ -1,6 +1,8 @@ class window.AppView extends Backbone.View el: '#application' - routes: {} + routes: { + 'index': 'index' + } template: JST['application/app_view'] initialize: -> controller = new Controller({app: this}) diff --git a/templates/app_view.js.erb b/templates/app_view.js.erb index 8b58f31..2b862d1 100644 --- a/templates/app_view.js.erb +++ b/templates/app_view.js.erb @@ -1,6 +1,8 @@ var AppView = Backbone.View.extend({ el: '#application', - routes: {}, + routes: { + 'index': 'index' + }, template: JST['application/app_view'], initialize: function() { _.bindAll(this, 'render');