Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add logout button

  • Loading branch information...
commit e314e216948b13358a65a572ab691d47eb2394b1 1 parent 54540c8
@FuriKuri authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/views/layouts/application.html.erb
View
4 app/views/layouts/application.html.erb
@@ -10,5 +10,9 @@
<%= yield %>
+<% if session[:user_id] %>
+ <%= button_to 'Logout', logout_path, method: :delete %>
+<% end %>
+
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.