Permalink
Browse files

fixing route generator to work with latest backbone version

  • Loading branch information...
1 parent 01ea124 commit 3a8b3f02bd705fe47a292db8faa3ca0fb1f34356 Ryan Fitzgerald committed Mar 31, 2012
@@ -3,7 +3,7 @@ class <%= router_namespace %>Router extends Backbone.Router
routes:
<% actions.each do |action| -%>
- "/<%= action %>": "<%= action %>"
+ "<%= action %>": "<%= action %>"
<% end -%>
<% actions.each do |action| -%>
@@ -4,10 +4,10 @@ class Dummy.Routers.PostsRouter extends Backbone.Router
@posts.reset options.posts
routes:
- "/new" : "newPost"
- "/index" : "index"
- "/:id/edit" : "edit"
- "/:id" : "show"
+ "new" : "newPost"
+ "index" : "index"
+ ":id/edit" : "edit"
+ ":id" : "show"
".*" : "index"
newPost: ->

0 comments on commit 3a8b3f0

Please sign in to comment.