Devise
<%=link_to 'Posts', posts_path %> |
<% if current_user %>
(<%= current_user.name %>)
<%= link_to "Log out", destroy_user_session_path, method: :delete, data: { turbo_method: :delete } %>
<%= link_to "My Profile", edit_user_registration_path %>
<% else %>
<%=link_to 'Sign Up', new_user_registration_path %> |
<%=link_to 'Login', new_user_session_path %>
<% end %>