Skip to main content

DEVISE: How do I redirect to a custom message page after user signs up and is required to confirm email address ?

Gems / Libraries • Asked by prithviraj sukale
I want to create a custom page that says "Go confirm your email" after Sign up using Devise

Did you get an answer to this? I'm looking for the same information.


I think I will try to override the method:

# app/config/routes.rb
# devise_for :users, :controllers => {:registrations => "registrations"}

# app/controllers/registrations_controller.rb
class RegistrationsController < Devise::RegistrationsController
  protected
  def after_sign_in_path_for(resource)
    # cofirm_email_sent_path
  end

Something like that - a lot like the recommendations for confirmable: https://github.com/plataformatec/devise/wiki/How-To:-Add-:confirmable-to-Users

so I looked at the controller for devise registrations:
https://github.com/plataformatec/devise/blob/master/app/controllers/devise/registrations_controller.rb)


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.