<% if current_user %> User <%= current_user['email'] %> logged in <%= button_to "Log out", destroy_user_session_path, method: :delete, class: 'btn-primary' %> <% else %> Not yet logged in! <%= button_to 'sign up', new_user_registration_path, class: 'btn-primary' %> <%= button_to 'sign in', new_user_session_path, class: 'btn-primary' %> <%end%>