<h1> LIST OF QUESTIONS </h1>

<%= link_to "NEW QUESTION", new_question_path %>

<h2> QUESTIONS </h2>

<div id="question-conatiner">
<ul>
  <% @questions.each do |question| %>

  <li> <%= link_to question.title, question_path(question) %> </li>
  <% end %>
</ul>
</div>



<h2> QUESTIONS </h2>

<div id="question-conatiner">
  <ul>
    <% @questions.each do |question| %>
      <li> <%= link_to question.title, question_path(question) %> </li>
    <% end %>
  </ul>
</div>

<% if logged_in? %>
  <%= link_to "Post a New Question", new_question_path %>
<% end %>



Hide new question link on questions/index from non-logged-in visitors
Hide new question link on questions/index from non-logged-in visitors
