Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8886845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:39:27+00:00 2026-06-14T21:39:27+00:00

I have Devise gem for user authentication. Basically, I want to override registrations_controller.rb in

  • 0

I have Devise gem for user authentication.
Basically, I want to override registrations_controller.rb in Devise gem locally. The code in gem:

class Devise::RegistrationsController < DeviseController
   ...
    def update
        ...(need to override)
    end
end

I want to redirect user to other page if particular attribute in edit_form is selected.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:39:29+00:00Added an answer on June 14, 2026 at 9:39 pm

    I would advise against overriding that method. Instead, take a look at the Wiki page about custom redirects after a profile edit. It explains to override this method:

    def after_update_path_for(resource)
      user_path(resource)
    end
    

    You could return different paths based on your attribute, so for example

    def after_update_path_for(resource)
      resource.foo? ? foo_path : bar_path
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 models Users(devise gem) and Profiles where class User < ActiveRecord::Base has_one
I Have authentication from scratch (without devise, oauth gem) User has email, login and
I have two devise models: User and Member As such, I'm specifying authentication keys
I have a devise user model with pro boolean column.I want to build a
I'm developing Rails application and I have to use authentication. I installed devise gem
I have one model User with Devise gem. I added a new field called
I'm using devise gem and showing user's objects on registrations/edit view. I have such
I have my authentication on my web app running on the devise gem. I
I am using the devise gem for authentication and have the following before_filter in
I am using the devise gem, and I have had user registration working in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.