From fc3799bcdcf3e2e31edeab88d163dd1bf1eb80ac Mon Sep 17 00:00:00 2001 From: Ivan Antropov Date: Mon, 10 Jun 2013 09:40:35 +0700 Subject: [PATCH] Update router.coffee Fix 'common' route, according Backbone route string specs - http://backbonejs.org/#Router-routes. --- lib/generators/backbone/scaffold/templates/router.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/backbone/scaffold/templates/router.coffee b/lib/generators/backbone/scaffold/templates/router.coffee index b60b9ba..c0f5aef 100644 --- a/lib/generators/backbone/scaffold/templates/router.coffee +++ b/lib/generators/backbone/scaffold/templates/router.coffee @@ -8,7 +8,7 @@ class <%= router_namespace %>Router extends Backbone.Router "index" : "index" ":id/edit" : "edit" ":id" : "show" - ".*" : "index" + "*other" : "index" new<%= class_name %>: -> @view = new <%= "#{view_namespace}.NewView(collection: @#{plural_name})" %>