Skip to content

Instantly share code, notes, and snippets.

@PJZ9n
Last active November 21, 2020 15:54
Show Gist options
  • Save PJZ9n/3900df15c781efd835b65b6acc309d70 to your computer and use it in GitHub Desktop.
Save PJZ9n/3900df15c781efd835b65b6acc309d70 to your computer and use it in GitHub Desktop.
<header>
<nav>
<% if user_signed_in? %>
<%= current_user.confirmation_token %>
<strong><%= link_to current_user.email %></strong>
<%= link_to 'プロフィール変更', edit_user_registration_path %>
<%= link_to 'ログアウト', destroy_user_session_path, method: :delete %>
<% else %>
<%= link_to 'サインアップ', new_user_registration_path %>
<%= link_to 'ログイン', new_user_session_path %>
<% end %>
</nav>
</header>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment