visionmedia / express-resource

Resourceful routing for Express
1.41k stars 140 forks source link

req.params not working fine with irregular verbs #58

Open mciparelli opened 12 years ago

mciparelli commented 12 years ago

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

th3james commented 11 years ago

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.