I found a code in stackoverflow.
def after_sign_up_or_signin_path_for(resource)
resource.update_all(online: true)
dashboard_url
end
since this question should not be asked in stackoverflow, but I googled and researched for hours, but unable to find meaning.