<% if session[:current_user] %>
  <p id="notice"><%= notice %></p>
  <div id='new_question_modal' class='modal'>
    <%= render 'form' %>
  </div>
<% else %>
  <div id='login_modal' class='modal'>
    <%= render '/login' %>
  </div>

  <div id='signup_modal' class='modal'>
    <%= render 'users/new' %>
  </div>
<% end %>
Add Partials for Form Modals
Add Partials for Form Modals
