app.use(express.bodyParser());
and put this before the routing definition, like this
app.configure('development', function() {
console.log("Development mode");
app.configure(function() {
app.use(express.bodyParser());
app.use(app.router);
.....
});
});
here is the related google groups thread.
Thank you for this post.
ReplyDeleteHowever i had to set bodyParser like that:
app.use(require('connect').bodyParser());
The one boudled with express didn't worked at all I had to use bodyParser from connect library.