From 134f93be86d5b8227d978e353330a0f3c3e47dd1 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 19 May 2011 20:58:34 -0400 Subject: [PATCH] oops --- templates/app_view.coffee.erb | 3 --- templates/app_view.js.erb | 3 --- templates/controller.coffee.erb | 4 +++- templates/controller.js.erb | 4 +++- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/templates/app_view.coffee.erb b/templates/app_view.coffee.erb index 218d289..fa30b42 100644 --- a/templates/app_view.coffee.erb +++ b/templates/app_view.coffee.erb @@ -1,8 +1,5 @@ class window.AppView extends Backbone.View el: '#application' - 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 2b862d1..9f1dd1a 100644 --- a/templates/app_view.js.erb +++ b/templates/app_view.js.erb @@ -1,8 +1,5 @@ var AppView = Backbone.View.extend({ el: '#application', - routes: { - 'index': 'index' - }, template: JST['application/app_view'], initialize: function() { _.bindAll(this, 'render'); diff --git a/templates/controller.coffee.erb b/templates/controller.coffee.erb index 6b763eb..f934c36 100644 --- a/templates/controller.coffee.erb +++ b/templates/controller.coffee.erb @@ -1,2 +1,4 @@ class window.Controller extends Backbone.Controller - routes: {} + routes: { + 'index': 'index' + } diff --git a/templates/controller.js.erb b/templates/controller.js.erb index 14fe57d..3f9bd95 100644 --- a/templates/controller.js.erb +++ b/templates/controller.js.erb @@ -1,4 +1,6 @@ var Controller = Backbone.Controller.extend({ - routes: {} + routes: { + 'index': 'index' + } });