This avoids needing to access the session id, which is currently only working with the memcache store. The fallback page is preserved for anyone who wants to logout without using javascript. Refs #2488
8 lines
219 B
Text
8 lines
219 B
Text
<% content_for :heading do %>
|
|
<h1><%= t ".heading" %></h1>
|
|
<% end %>
|
|
|
|
<%= form_tag :action => "logout" do %>
|
|
<%= hidden_field_tag("referer", h(params[:referer])) %>
|
|
<%= submit_tag t(".logout_button") %>
|
|
<% end %>
|