bookstore/app/views/sessions/welcome.html.erb
2021-03-20 20:26:52 +01:00

6 lines
No EOL
205 B
Text

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