Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Aug 9, 2011
1 parent 119c2ce commit c102f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
});
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit c102f34

Please sign in to comment.