express-resource icon indicating copy to clipboard operation
express-resource copied to clipboard

req.params not working fine with irregular verbs

Open mciparelli opened this issue 12 years ago • 1 comments

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 ] },

mciparelli avatar Apr 18 '12 12:04 mciparelli

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.

th3james avatar Aug 18 '13 16:08 th3james