-
Notifications
You must be signed in to change notification settings - Fork 41
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
v0.0.11 seems to throw a filter error while routing #15
Comments
what does your
|
my routes.js
Excerpt from controller (called on index):
|
i think i know what happened.... which is likely anyone upgrading to others (i should have bumped this as a minor release, instead of patch). you'll more than likely need to change the first line of your module.exports = require('matador').BaseController.extend(function () { i'm pretty sure i changed over the ownership of the BaseController to be in the module, and not the scaffold |
You're right, changing it to I updated to 0.0.12, too, and it works just great Thanks for matador, btw, It's awesome. I have it running in production here: http://sourcedevcon.eu |
glad that worked! super cool to see it in action :) |
This works ok in 0.0.10, tho. It's a simple app, something as shown in your examples. Here's the error stack.
TypeError: Cannot call method 'filter' of undefined
at /srv/myapp/node_modules/matador/node_modules/valentine/valentine.js:70:18
at Valentine.filter (/srv/myapp/node_modules/matador/node_modules/valentine/valentine.js:513:20)
at /srv/myapp/node_modules/matador/src/router.js:10:12
at callbacks (/srv/myapp/node_modules/matador/node_modules/express/lib/router/index.js:272:11)
at param (/srv/myapp/node_modules/matador/node_modules/express/lib/router/index.js:246:11)
at pass (/srv/myapp/node_modules/matador/node_modules/express/lib/router/index.js:253:5)
at Router._dispatch (/srv/myapp/node_modules/matador/node_modules/express/lib/router/index.js:280:4)
at Object.handle (/srv/myapp/node_modules/matador/node_modules/express/lib/router/index.js:45:10)
at next (/srv/myapp/node_modules/matador/node_modules/express/node_modules/connect/lib/http.js:203:15)
at next (/srv/myapp/node_modules/matador/node_modules/express/node_modules/connect/lib/http.js:205:9)
The text was updated successfully, but these errors were encountered: