
<h2>All Questions</h2>

<% @questions.each do |question| %>
  <div class="question-container">
    <div class="question-stats">
    
      <div class="votes">0</div>
      <div class="votes-label">votes</div>

      <div class="answers">
        <%= question.answers.count %>
      </div>
      <div class="answers-label">answers</div>

      <div class="views">0</div>
      <div class="views-label">views</div>

    </div>

    <%= link_to question.title, question_path(question) %>

  </div>
  <% end %>

<h2>All Questions</h2>

<% @questions.each do |question| %>
  <div class="question-container">
    <div class="question-stats">

      <div class="votes"><%= question.sum_of_votes %></div>
      <div class="votes-label">votes</div>

      <div class="answers">
        <%= question.answers.count %>
      </div>
      <div class="answers-label">answers</div>

      <div class="views">0</div>
      <div class="views-label">views</div>

    </div>

    <%= link_to question.title, question_path(question) %>

  </div>
  <% end %>

Implement vote count on questions index page
Implement vote count on questions index page
