Skip to content
Browse files

cleaning up spacing a bit in generated router

  • Loading branch information...
1 parent a9d081b commit 4636bf3c9515d04e0e331ee97912066ec763e852 Ryan Fitzgerald committed Sep 4, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/generators/backbone/scaffold/templates/router.coffee
View
10 lib/generators/backbone/scaffold/templates/router.coffee
@@ -4,11 +4,11 @@ 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"
- ".*": "index"
+ "/new" : "new<%= class_name %>"
+ "/index" : "index"
+ "/:id/edit" : "edit"
+ "/:id" : "show"
+ ".*" : "index"
new<%= class_name %>: ->
@view = new <%= "#{view_namespace}.NewView(collection: @#{plural_name})" %>

0 comments on commit 4636bf3

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