Skip to content
Browse files

add logout button

  • Loading branch information...
1 parent 54540c8 commit e314e216948b13358a65a572ab691d47eb2394b1 @FuriKuri committed Nov 8, 2012
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>

0 comments on commit e314e21

Please sign in to comment.
Something went wrong with that request. Please try again.