summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/common/_signout.html.erb5
-rw-r--r--app/views/layouts/application.html.erb2
2 files changed, 1 insertions, 6 deletions
diff --git a/app/views/common/_signout.html.erb b/app/views/common/_signout.html.erb
deleted file mode 100644
index 2bdda0c..0000000
--- a/app/views/common/_signout.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<%=
-form_tag(sessions_path+"/current", method: "delete") do
- submit_tag("Sign out", :class => "signout")
-end
-%>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 0747b5d..8c54c64 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -20,7 +20,7 @@
<div id="log-buttons">
<% if signed_in? %>
<%= link_to current_user.user_name, current_user, :class => "user" %>
- <%= render "common/signout" %>
+ <%= link_to "Sign out", session_path("current"), method: "delete", :class => "signout" %>
<% else %>
<%= link_to "Log in", new_session_path, :class => "signin" %>
<%= link_to "Sign up", new_user_path, :class => "signup" %>