I have a serious problem: D ... I try to make some guides about node and express and with the last I get an error message, the tutorial I am trying to do is it
http://www.ianwootten.co.uk/2011/02/07/blog-rolling-with-couchdb-express-and-node-js
and this is a mistake
when I use req.param('title'), I always get big undefined, and it is saved inside my couchdb, I am debugging this and ... I'm sure the error is inside my query parameter, obviously, my view has an input field called title I tried req.body('title')and req.param.title, and I I get the same "error"
I am using the latest version for express and node ... and I am changing bodyDecoder for bodyParse..I am using jade for my views template ...
app.post('/blog/new', function(req,res){
articleProvider.save({
title: req.param('title'),
body: req.param('body')
}, function(error, docs) {
res.redirect('/')
});
});
what can i do? ... thanks everyone for reading and for help ...