I have a route /changepassword and I need to add to it 2 params: iduser and resetcode. To look like this: /changepassword?iduser=123&resetcode=foo
I read other things related to this (1, 2) but I couldn't figure this out. I don't have any experience in ember but I was ask to do some modifications where I work. We are using ember 1.5.1
I tried this but it's throwing me this: Uncaught Error: Assertion Failed: Error: Assertion Failed: The URL '/changepassword?test1=aaasd' did not match any routes in your application
This are my routes:
module.exports = App.Router.map ->
@resource 'index', path: '/', ->
@resource('account_sign_up', path: '/signup')
@resource('unsubscribe', path: '/unsubscribe')
@resource('change_password', path: '/changepassword/:test1/:test2')
Any help? Thanks!
Aucun commentaire:
Enregistrer un commentaire