title: Nodejs controller not working properly
body: <pre><code>router.get('/roomlist', function(req, res) {
      var db = req.db;
      var collection = db.get('roomlist');
      collection.find(function(e,docs){
          res.render('roomlist', {
              "roomlist" : docs
          });
      });
  });
  </code></pre>
  
  <p>The above controller is used to get list of rooms under a table "ROOMLIST". I need to get the details. I need to display all the roomname in the table ROOMLIST.</p>