From d9f34ecdbc9c65cd6352a1c23377bb00930a3501 Mon Sep 17 00:00:00 2001 From: pollseed Date: Sat, 12 Sep 2015 20:42:22 +0900 Subject: [PATCH] ref #4 --- app/views/layouts/application.html.erb | 2 +- config/initializers/devise.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 8f67abf..4ab9bba 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -20,7 +20,7 @@ deviseにより自動で作成されてますので、rake routesで確認できます --> Logged in as <%=link_to current_user.username, bots_path(current_user.username)%>| <%= link_to 'HashTagの登録', hash_tags_path %> | - <%= link_to "ログアウト", destroy_user_session_path, method: :delete %> + <%= link_to "ログアウト", destroy_user_session_path, method: :get %> <% else %> <%= link_to image_tag("signin_with_twitter_logo.png", :size => "188x30", :class => "twitter_layout"), user_omniauth_authorize_path(:twitter) %> diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 5428db2..096cacc 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -220,7 +220,7 @@ # Set this configuration to false if you want /users/sign_out to sign out # only the current scope. By default, Devise signs out all scopes. - # config.sign_out_all_scopes = true + config.sign_out_all_scopes = false # ==> Navigation configuration # Lists the formats that should be treated as navigational. Formats like