From f81ea7489f9aa913afb3addbf30716f8fd250d80 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sun, 28 Oct 2012 14:48:42 -0400 Subject: [PATCH] fixed logout path issue. now returns you to homepage when you log out. --- app/controllers/sessions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index a431a13f..29e638ea 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -35,7 +35,7 @@ class SessionsController < ApplicationController @session.destroy respond_to do |format| - format.html { respond_with(@session, location: maps_url) } + format.html { respond_with(@session, location: restore(default: root_path)) } end end