<%= csrf_meta_tags %> <%= csp_meta_tag %> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> <%= stylesheet_link_tag "whodat/application", media: "all" %> <%= javascript_include_tag "whodat/application" %>
<%= link_to 'Main app', main_app.root_path %> <% if !user_signed_in? %> <%= link_to 'Sign Up', new_user_path %> <%= link_to 'Log In', new_session_path %> <% end %> <% if user_signed_in? %> <%= link_to 'Log Out', session_path(current_user), data: {confirm: "Are you sure?" }, method: :delete %>
You're logged in as <%=current_user.name %>
<% end %>