<p id='us_name'><%= @user.name %></p>
<div class="user_show">
	<ul>
	  <li><%= image_tag @user.avatar, :id => 'us_avatar' %></li>
	  <li class='user_info'><%= @user.age %></li>
	  <li class='user_info'><%= @user.location %></li>
	</ul>
</div>
<p class='us_title'>Questions</p>
<div class="user_show">
	<% @user.questions.each do |question| %>
	<ul>
	  <li><%= question.title %></li>
	  <li><%= question.content %></li>
	</ul>
	<%end%>
</div>

<p class='us_title'>Answers</p>
<div class="user_show">
	<% @user.answers.each do |answer| %>
	<ul>
	  <li><%= answer.content %></li>
	</ul>
	<%end%>
</div>

<% if session[:user_id] == @user.id %>
<%= link_to "Edit my profile", edit_user_path %>
<%= link_to "Delete my profile", @user, method: :delete, data: {confirm: "Are you sure?"} %>
<% end %>


<p id='us_name'><%= @user.name %></p>
<div class="user_show">
	<ul>
	  <li><%= image_tag @user.avatar, :id => 'us_avatar' %></li>
	  <li class='user_info'><%= @user.age %></li>
	  <li class='user_info'><%= @user.location %></li>
	</ul>
</div>
<p class='us_title'>Questions</p>
<div class="user_show">
	<% @user.questions.each do |question| %>
	<ul>
	  <li><%= link_to "#{question.title}", question_path(question.id) %></li>
	  <li><%= question.content %></li>
	</ul>

	<%end%>
</div>

<p class='us_title'>Answers</p>
<div class="user_show">
	<% @user.answers.each do |answer| %>
	<ul>
	  <li><%= link_to "#{answer.content}", question_path(answer.question_id) %></li>
	</ul>
	<%end%>
</div>

<% if session[:user_id] == @user.id %>
<%= link_to "Edit my profile", edit_user_path %>
<%= link_to "Delete my profile", @user, method: :delete, data: {confirm: "Are you sure?"} %>
<% end %>


Put question and answer links on user_index page
Put question and answer links on user_index page
