Permalink
Browse files

Bug fix

  • Loading branch information...
1 parent 119c2ce commit c102f341bbc93be35491c0247282d7092d66ed1b @chriso chriso committed Aug 9, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/rest.js
  2. +1 −1 package.json
View
2 lib/rest.js
@@ -290,7 +290,7 @@ function topLevelRoutes (app, prefix, resource, config) {
return response.send(instance);
}
request.flash('info', 'The %s was updated successfully', singular);
- response.redirect('/' + plural + '/' + request.params.id);
+ response.redirect('/' + plural + '/' + request.params[singular]);
});
}
View
2 package.json
@@ -3,7 +3,7 @@
"name": "mongoose-rest",
"description": "RESTful, resource-based routes for Mongoose",
"homepage": "http://github.com/chriso/mongoose-rest",
- "version": "0.1.9",
+ "version": "0.2.0",
"engines": {
"node": ">= 0.4.0"
},

0 comments on commit c102f34

Please sign in to comment.