Skip to content

Commit

Permalink
Fixing bug when updating pet name in MVC example.
Browse files Browse the repository at this point in the history
  • Loading branch information
swrh committed Apr 21, 2014
1 parent 50158b8 commit 896609c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mvc/controllers/pet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exports.edit = function(req, res, next){

exports.update = function(req, res, next){
var body = req.body;
req.pet.name = body.user.name;
req.pet.name = body.pet.name;
res.message('Information updated!');
res.redirect('/pet/' + req.pet.id);
};

0 comments on commit 896609c

Please sign in to comment.