rename username to email

This commit is contained in:
Karol Selak 2021-03-20 22:37:38 +01:00
parent 7412853a3e
commit cd40ef66c6
9 changed files with 18 additions and 13 deletions

View file

@ -1,6 +1,6 @@
<h1>Welcome</h1>
<% if logged_in? %>
<h1>You are Logged In, <%= current_user.username %></h1>
<h1>You are Logged In, <%= current_user.email %></h1>
<%= button_to "Logout", '/logout', method: :get%>
<%else%>
<%= button_to "Login", '/login', method: :get%>