Skip to content

Instantly share code, notes, and snippets.

@jonathanKingston
Created April 22, 2012 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanKingston/2440464 to your computer and use it in GitHub Desktop.
Save jonathanKingston/2440464 to your computer and use it in GitHub Desktop.
sample route issue
BrittoRouter = Backbone.Router.extend({
routes: {
":slug": "findPost",
":slug/": "findPost"
},
findPost: function(slug) {
console.log(Posts.find());
console.log(Posts.findOne());
post = Posts.findOne({slug: 'out'});
Session.set('new_slug', slug);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment