bookstore/app/views/sessions/welcome.html.erb

9 lines
308 B
Text
Raw Normal View History

<h4>Welcome</h4>
2021-03-20 20:02:37 +01:00
<% if logged_in? %>
2021-03-21 11:40:53 +01:00
You are Logged In, <%= current_user.email %>
2021-03-21 17:02:04 +01:00
<%= button_to "Logout", '/logout', method: :get, class: 'btn' %>
<% else %>
2021-03-21 17:02:04 +01:00
<%= button_to "Login", '/login', method: :get, class: 'btn' %>
<%= button_to "Sign Up", '/users/new', method: :get, class: 'btn' %>
<% end %>