<div id="nav-bar">
  <% if current_user %>
    <%= link_to 'Logout', logout_path %>
  <% else %>
    <%= link_to 'Login', login_path %>
    <%= link_to 'Signup', new_user_path %>
  <% end %>
</div>
<div id="nav-bar">
  <% if current_user %>
    <%= link_to 'Add Post', new_post_path %>
    <%= link_to 'Logout', logout_path %>
  <% else %>
    <%= link_to 'Login', login_path %>
    <%= link_to 'Signup', new_user_path %>
  <% end %>
</div>
Add link to new post in navbar
Add link to new post in navbar
