title: Failed to lookup view "index" in views directory
body: <p>I am trying to learn node.js.</p>
  
  <p>I have the following code.</p>
  
  <pre><code>var express = require('express');
  var app = express();
  
  var port = process.env.PORT || 5000;
  
  app.use(express.static('public'));
  app.use(express.static('src/views'));
  
  app.set('view engine', 'ejs');
  
  app.get('/', function(req, res) {
      res.render('index', { title: 'Hello from render', nav: ['Books', 'Author'] });
  });
  </code></pre>
  
  <blockquote>
    <p>Failed to lookup view "index" in views directory 
    I have the file named index.ejs. How can I get rid of this error?</p>
  </blockquote>