From f4be776697de972312850b9276ba5812095fdc43 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Fri, 29 Nov 2013 12:31:50 +0800 Subject: [PATCH] added after confirmation path --- app/controllers/confirmations_controller.rb | 9 +++++++++ app/controllers/registrations_controller.rb | 5 ----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 app/controllers/confirmations_controller.rb diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb new file mode 100644 index 00000000..48f914ad --- /dev/null +++ b/app/controllers/confirmations_controller.rb @@ -0,0 +1,9 @@ +class ConfirmationsController < Devise::ConfirmationsController +layout "devise" + + private + + def after_confirmation_path_for(resource_name, resource) + basic_infos_path + end +end \ No newline at end of file diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 2016aa64..57aa5f7c 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -1,8 +1,3 @@ class RegistrationsController < Devise::RegistrationsController layout "devise" - protected - - def after_sign_up_path_for(resource) - basic_infos_path - end end \ No newline at end of file