From bb234d74639cdc65ca332250b0f07b586cab45e8 Mon Sep 17 00:00:00 2001 From: Benjamin Cousaert Date: Tue, 9 Dec 2014 17:28:24 +0100 Subject: [PATCH] Fix routes for devise --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 1933cf4..038ae7f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -5,11 +5,11 @@ class ApplicationController < ActionController::Base before_action :configure_permitted_parameters, if: :devise_controller? def after_sign_in_path_for(resource) - new_user_session_path + root_path end def after_sign_up_path_for(resource) - root_path + new_user_session_path end include OrdersHelper