evodata/app/views/static_pages/home.html.erb

14 lines
563 B
Plaintext

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