<h1>New Question</h1>

<%= form_for :question, url: questions_path do |f| %>
    <p>
      <%= f.label :question %><br/>
      <%= f.text_area :question, class: "form-control", style: "width: 50%; height: 100px" %>
    </p>
    <p>
      <%= f.label :username %><br/>
      <%= f.text_field :username, class: "form-control", style: "width: 40%;" %>
    </p>
    <p>
      <%= f.submit class: "btn btn-primary" %>
    </p>
<% end %>
<h1>New Question</h1>

<%= form_for :question, url: questions_path do |f| %>
    <p>
      <%= f.label :question %><br/>
      <%= f.text_area :question, class: "form-control", style: "width: 50%; height: 100px" %>
    </p>
    <% if !(user_signed_in?) %>
    <p>
      <%= f.label :username %><br/>
      <%= f.text_field :username, class: "form-control", style: "width: 40%;" %>
    </p>
    <% end %>
    <p>
      <%= f.submit class: "btn btn-primary" %>
    </p>
<% end %>
Remove the field :username for logged in user to 'new question'
Remove the field :username for logged in user to 'new question'
