Take the 2-minute tour ×

How to redirect to a specific page on successful sign up using rails devise gem?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

This page is for you: http://github.com/plataformatec/devise/wiki/How-To:-Redirect-to-a-specific-page-on-successful-sign-in

share|improve this answer
Yannis, you misunderstood my question. It was about sign UP not sign IN. –  Alexey Zakharov Oct 7 '10 at 12:01
where you able to make it work ? because somehow it never seems to go through my overridden controller... Do I need to update my routes ? If I do so then I need to have another of views ? –  Alex Jan 24 '11 at 14:26
add comment

I hope its not too late, you need to override the after_sign_up_path_for of the registration controller, create a registrations_controller.rb in your app/controller, and override said action.


class RegistrationsController < Devise::RegistrationsController

  def after_sign_up_path_for(resource)
    ...path of choice...


haven't tested this code so might not work with just copy and paste. If you look here it will give you the actions for any other redirects you made need.


share|improve this answer
add comment

Your Answer


