title: forEach not working properly on EJS template
body: <p>I was trying to grab all the students from the database collection and have them display row by row in the EJS template. I thought a forEach would be the best way to do this but it only displayed one entry when there were 6. Any advice on how I could display all entries would be greatly appreciated.</p>
  
  <p>The table</p>
  
  <pre><code>   &lt;table class="table col-md-4"&gt;
      &lt;thead class="thead-inverse"&gt;
      &lt;tr&gt;
          &lt;th&gt;First Name&lt;/th&gt;
          &lt;th&gt;Last Name&lt;/th&gt;
          &lt;th&gt;Math Level&lt;/th&gt;
          &lt;th&gt;English Level&lt;/th&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
      &lt;% students.forEach(function(student){%&gt;
      &lt;tr&gt;
      &lt;td&gt;&lt;%=student.firstname %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%=student.lastname %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%=student.english_level%&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%=student.math_level%&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;%})%&gt;
  
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>In this GET request I fetched all the students from my database and the page on which they would be displayed</p>
  
  <pre><code>//INDEX - show all students
  app.get("/students", function(req, res){
      // Get all students from DB
      Student.find({}, function(err, allStudents){
          if(err){
              console.log(err);
          } else {
              res.render("students",{students:allStudents});
              console.log(allStudents);
          }
      });
  });
  </code></pre>