Created
December 29, 2022 13:43
-
-
Save DevGW/754fa128397e5c8178924476ae55da9f to your computer and use it in GitHub Desktop.
Ruby / Rails :: Devise Login for application.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="login"> | |
<% if user_signed_in? %> | |
Logged in as <strong><%= current_user.email %></strong>. | |
<%= link_to 'Edit profile', edit_user_registration_path, :style=>'color: white' %> | | |
<%= link_to "Logout", destroy_user_session_path, method: :delete, :style=>'color: white' %> | |
<% else %> | |
<%= link_to "Sign up", new_user_registration_path, :style=>'color: white' %> | | |
<%= link_to "Login", new_user_session_path, :style=>'color: white' %> | |
<% end %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment