Add devise

This commit is contained in:
maddiebaka
2023-10-13 18:16:00 -04:00
parent f5e9f3699f
commit c6fac7583d
24 changed files with 743 additions and 1 deletions

View File

@@ -11,6 +11,16 @@
</head>
<body>
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
<div style="display: block;">
<% if user_signed_in? %>
<p>Welcome <%= current_user.username %></p>
<%= link_to "Sign Out", destroy_user_session_path, data: { turbo_method: :delete } %>
<% else %>
<%= link_to "Sign In", new_user_session_path %>
<%= link_to "Register", new_user_registration_path %>
<% end %>
<%= yield %>
</body>
</html>