Rails Authentication From Scratch
<% if user_signed_in? %>
- <%= link_to "My Acount", account_path %>
- <%= button_to "Logout", logout_path, method: :delete %>
<% else %>
- <%= link_to "Login", login_path %>
- <%= link_to "Sign Up", sign_up_path %>
- <%= link_to "Forgot my password", new_password_path %>
- <%= link_to "Didn't receive confirmation instructions", new_confirmation_path %>
<% end %>