Skip to content
Browse files

Merge pull request #104 from zhubert/master

scaffold generated routes prepended with / cause issues
  • Loading branch information...
2 parents 0bf9a89 + a84ce53 commit 134e8a63eb14b6bd5edeb1f014490221e6c005b5 Ryan Fitzgerald committed Apr 13, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/generators/backbone/scaffold/templates/router.coffee
View
8 lib/generators/backbone/scaffold/templates/router.coffee
@@ -4,10 +4,10 @@ class <%= router_namespace %>Router extends Backbone.Router
@<%= plural_model_name %>.reset options.<%= plural_model_name %>
routes:
- "/new" : "new<%= class_name %>"
- "/index" : "index"
- "/:id/edit" : "edit"
- "/:id" : "show"
+ "new" : "new<%= class_name %>"
+ "index" : "index"
+ ":id/edit" : "edit"
+ ":id" : "show"
".*" : "index"
new<%= class_name %>: ->

0 comments on commit 134e8a6

Please sign in to comment.
Something went wrong with that request. Please try again.