diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-05 20:12:18 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-05 20:12:18 -0500 |
commit | a4b40b899bca6396eea63672590282c7011f386c (patch) | |
tree | eb95df75a3706201d1036f84b9a544dc7feb1a98 /app | |
parent | 432c0a5745d01089b28208569a2a2fd901970ce2 (diff) |
undo my kludgery from when JS was broken
Diffstat (limited to 'app')
-rw-r--r-- | app/views/common/_signout.html.erb | 5 | ||||
-rw-r--r-- | app/views/layouts/application.html.erb | 2 |
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" %> |