bookstore/app/views/sessions/welcome.html.erb
Karol Selak 7412853a3e logout
2021-03-20 22:23:32 +01:00

8 lines
271 B
Text

<h1>Welcome</h1>
<% if logged_in? %>
<h1>You are Logged In, <%= current_user.username %></h1>
<%= button_to "Logout", '/logout', method: :get%>
<%else%>
<%= button_to "Login", '/login', method: :get%>
<%= button_to "Sign Up", '/users/new', method: :get%>
<%end%>