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

Already on GitHub? Sign in to your account

req.params not working fine with irregular verbs #58

Open
mciparelli opened this Issue Apr 18, 2012 · 1 comment

Comments

Projects
None yet
2 participants

If I have a 'countries' resource, then req.params.country is undefined. Instead this is what req.params has ('countrie'):
params: [ countrie: '1', format: undefined ] },

We're having the same problem, lingo incorrectly guesses the singular of our 'narratives' resource is 'narratife'. Seems like the best way to fix it is to add an exception to the lingo library (which is what express-resource uses) here: https://github.com/visionmedia/lingo/blob/master/lib/languages/en.js
and make a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment