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