Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

cleaning up spacing a bit in generated router

  • Loading branch information...
commit 4636bf3c9515d04e0e331ee97912066ec763e852 1 parent a9d081b
Ryan Fitzgerald ryanfitz authored
10 lib/generators/backbone/scaffold/templates/router.coffee
@@ -4,11 +4,11 @@ class <%= router_namespace %>Router extends Backbone.Router
4 4 @<%= plural_model_name %>.reset options.<%= plural_model_name %>
5 5
6 6 routes:
7   - "/new": "new<%= class_name %>"
8   - "/index": "index"
9   - "/:id/edit": "edit"
10   - "/:id": "show"
11   - ".*": "index"
  7 + "/new" : "new<%= class_name %>"
  8 + "/index" : "index"
  9 + "/:id/edit" : "edit"
  10 + "/:id" : "show"
  11 + ".*" : "index"
12 12
13 13 new<%= class_name %>: ->
14 14 @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.