title: "Failed to lookup view" in basic Express.js application
body: <p>I'm trying to learn Express.js, so I created simple Express app. The app.js looks as follows:</p>
  
  <pre><code>var express = require('express'); 
  var app = express();
  
  app.configure(function(){
      app.set('view engine', 'jade'); 
      app.set('views', __dirname);
  });
  
  app.get('/', function(req, res){ 
      res.render("index");
  });
  
  app.listen(8080);
  </code></pre>
  
  <p>My folders structures looks following:
  <img src="https://i.stack.imgur.com/jlogH.jpg" alt="enter image description here"></p>
  
  <p>However, when I point my browser to <code>http://localhost:8080</code> I'm getting the following output:</p>
  
  <pre><code>Error: Failed to lookup view "index"
  at Function.app.render (/Users/kuba/Documents/ws_javascript/express_spike/node_modules/express/lib/application.js:492:17)
  at ServerResponse.res.render (/Users/kuba/Documents/ws_javascript/express_spike/node_modules/express/lib/response.js:721:7)
  at /Users/kuba/Documents/ws_javascript/express_spike/app.js:10:6
  at callbacks (/Users/kuba/Documents/ws_javascript/express_spike/node_modules/express/lib/router/index.js:161:37)
  at param (/Users/kuba/Documents/ws_javascript/express_spike/node_modules/express/lib/router/index.js:135:11)
  at pass (/Users/kuba/Documents/ws_javascript/express_spike/node_modules/express/lib/router/index.js:142:5)
  at Router._dispatch (/Users/kuba/Documents/ws_javascript/express_spike/node_modules/express/lib/router/index.js:170:5)
  at Object.router (/Users/kuba/Documents/ws_javascript/express_spike/node_modules/express/lib/router/index.js:33:10)
  at next (/Users/kuba/Documents/ws_javascript/express_spike/node_modules/express/node_modules/connect/lib/proto.js:199:15)
  at Object.expressInit [as handle] (/Users/kuba/Documents/ws_javascript/express_spike/node_modules/express/lib/middleware.js:31:5)
  </code></pre>
  
  <p>I've checked and the permissions for the files are ok.
  Any ideas why express cannot find my index.jade file?</p>