Skip to content

Commit

Permalink
fixing route generator to work with latest backbone version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Fitzgerald committed Mar 31, 2012
1 parent 01ea124 commit 3a8b3f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/generators/backbone/router/templates/router.coffee
Expand Up @@ -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| -%>
Expand Down
Expand Up @@ -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: ->
Expand Down

0 comments on commit 3a8b3f0

Please sign in to comment.