From ab16efcb156bfffeccda0ee1c32866ba72d42aa5 Mon Sep 17 00:00:00 2001 From: yasushiito Date: Tue, 3 Jan 2012 19:42:26 +0900 Subject: [PATCH] add logout button --- app/views/layouts/application.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 38812561..8522e461 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -17,8 +17,9 @@ <% end %>
-<% if author_signed_in? %> +<% if admin_signed_in? %> <%= link_to "system", :controller => '/system' %> + <%= link_to "ログアウト", destroy_admin_session_path, :method => :delete %> <% else %> <%= link_to "管理者", new_admin_session_path %> <% end %> -- 2.11.0