Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug fix

  • Loading branch information...
commit c102f341bbc93be35491c0247282d7092d66ed1b 1 parent 119c2ce
Chris O'Hara chriso authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  lib/rest.js
  2. +1 1  package.json
2  lib/rest.js
@@ -290,7 +290,7 @@ function topLevelRoutes (app, prefix, resource, config) {
290 290 return response.send(instance);
291 291 }
292 292 request.flash('info', 'The %s was updated successfully', singular);
293   - response.redirect('/' + plural + '/' + request.params.id);
  293 + response.redirect('/' + plural + '/' + request.params[singular]);
294 294 });
295 295 }
296 296
2  package.json
@@ -3,7 +3,7 @@
3 3 "name": "mongoose-rest",
4 4 "description": "RESTful, resource-based routes for Mongoose",
5 5 "homepage": "http://github.com/chriso/mongoose-rest",
6   - "version": "0.1.9",
  6 + "version": "0.2.0",
7 7 "engines": {
8 8 "node": ">= 0.4.0"
9 9 },

0 comments on commit c102f34

Please sign in to comment.
Something went wrong with that request. Please try again.