When the user clicks on the confirmation link, they go to the confirmation page, which checks the confirmation token, and if it is valid, automatically registers them in the application. You can overwrite the after_sign_in_path_for method in your ApplicationController ( as shown in the Devise quiz ), and then redirect them to your home page when you first log on to the system.
def after_sign_in_path_for(resource_or_scope) if resource_or_scope.is_a?(User) && first login getting_started_path else super end end
For the “first login” you can check if the mark with the confirmed_ is in a couple of minutes, if you also use the developed tracking module, you can check if sign_in_count 1 is equal, or you can create your own field A user who tracks this information.
source share