<% if current_user.nil? %> <%= render partial: "answeredquestion", object: question %> <% else %>
<%= question.title%>
<% end %>