<div id="question-info" class="container">
  <h3><%= @question.title %></h3>
  <p><%= @question.content%></p>
  <p>Asked by <%= @question.user.name %> on <%= std_format_date(@question.created_at) %></p>
</div>

<%= link_to "Edit my question", edit_question_path %>
<%= link_to "Delete my question", question_path, method: :delete %>

<div id="answers-container" class="container">
  <% @question.answers.each do |answer|%>
    <div>
      <%= answer.content %>
    </div>
  <% end %>
</div>



<div id="question-info" class="container">
  <h3><%= @question.title %></h3>
  <p><%= @question.content%></p>
  <p>Asked by <%= @question.user.name %> on <%= std_format_date(@question.created_at) %></p>
</div>

<% if current_user == @question.user %>
  <%= link_to "Edit my question", edit_question_path %>
  <%= link_to "Delete my question", question_path, method: :delete %>
<% end %>

<div id="answers-container" class="container">
  <% @question.answers.each do |answer|%>
    <div>
      <%= answer.content %>
    </div>
  <% end %>
</div>



Hide edit and delete questions links on qeustions/show view from all users except question owner
Hide edit and delete questions links on qeustions/show view from all users except question owner
