diff --git a/CHANGELOG b/CHANGELOG
index 69e575be23d909219a721359fed16f9258090645..09601e27359074221511824701f0cd8fc6a30842 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -4,6 +4,7 @@ v 7.11.0 (unreleased)
   - Fix clone URL field and X11 Primary selection (Dmitry Medvinsky)
   - Ignore invalid lines in .gitmodules
   - Fix "Cannot move project" error message from popping up after a successful transfer (Stan Hu)
+  - Redirect to sign in page after signing out.
   -
   - Add "Reply quoting selected text" shortcut key (`r`)
   - Fix bug causing `@whatever` inside an issue's first code block to be picked up as a user mention.
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 8ddb424dcfbc9e40fa0c840d5013c4b0010d506b..cfe2c76265c0f7e9618497cd7880cdebb24f784d 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -87,6 +87,10 @@ class ApplicationController < ActionController::Base
     end
   end
 
+  def after_sign_out_path_for(resource)
+    new_user_session_path
+  end
+
   def abilities
     Ability.abilities
   end
diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml
index 78d6d08ee1f537381227fa228197b657ad362da5..5a6ae09a506ca963be9bf48062f25079b47825c1 100644
--- a/app/views/layouts/_head.html.haml
+++ b/app/views/layouts/_head.html.haml
@@ -16,7 +16,7 @@
 
   = render 'layouts/google_analytics' if extra_config.has_key?('google_analytics_id')
   = render 'layouts/piwik' if extra_config.has_key?('piwik_url') && extra_config.has_key?('piwik_site_id')
-  = render 'layouts/bootlint' if Rails.env == 'development'
+  = render 'layouts/bootlint' if Rails.env.development?
 
   -# Atom feed
   - if current_user
diff --git a/config/initializers/6_rack_profiler.rb b/config/initializers/6_rack_profiler.rb
index b634028756925661e59683bd908b5140275504ef..bdad6202b11d34eb0be080246d3db22f9a1cccf7 100644
--- a/config/initializers/6_rack_profiler.rb
+++ b/config/initializers/6_rack_profiler.rb
@@ -1,4 +1,4 @@
-if Rails.env == 'development'
+if Rails.env.development?
   require 'rack-mini-profiler'
 
   # initialization is skipped so trigger it