Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is your router broken? #15

Open
misterjt opened this issue Apr 8, 2014 · 1 comment
Open

Is your router broken? #15

misterjt opened this issue Apr 8, 2014 · 1 comment

Comments

@misterjt
Copy link

misterjt commented Apr 8, 2014

Simple code

var router=new Sherpa.Router()
router.add('/url/:id').name('g')
router.generate('g',{id:1})
TypeError: Cannot read property 'length' of undefined

what am I doing wrong?

@misterjt
Copy link
Author

misterjt commented Apr 8, 2014

router.add('/blog/:post/download/:file.:format').to('c.a')
router.recognize('/blog/1563/download/comments.html') // undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant