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

  • SEARCH
  • Home
  • 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 7634803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:16:24+00:00 2026-05-31T07:16:24+00:00

I am using Devise 1.5.3. I inherited Devise::RegistrationsController for customizing my own path for

  • 0

I am using Devise 1.5.3.

I inherited Devise::RegistrationsController for customizing my own path for after_update:

class RegistrationsController < Devise::RegistrationsController
   protected
   def after_update_path_for(resource)
     some_path
   end 
end

After that Rails tries to find views for registration actions (new, create, etc) in views/registrations/ but no in /views/devise/registrations

Sure, I can copy all from /views/devise/registrations to views/registrations/. But it’s not suitable for me, because rest of my view (for not customized controllers) still are in /views/devise/registrations.

How Can I fix it?

  • 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-05-31T07:16:26+00:00Added an answer on May 31, 2026 at 7:16 am

    I think it should work if you scope your RegistrationsController into Devise’s scope:

    class Devise::MyRegistrationsController < Devise::RegistrationsController
      # ...
    end
    

    Of course you can’t use the same name for the RegistrationsController and you have rename the views/devise/registrations folder to views/devise/my_registrations and you have to update your routes.rb file as well… but with this setup it should work…

    Another option, I think, would be to overwrite/inject the method in an initializer:

    class Devise::RegistrationsController
      protected
      def after_update_path_for(resource)
        some_path
      end 
    end
    

    which may be simpler…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Devise's built in before_filter :authenticate_user! . I want to call my own
I am using Devise gem and I want to change the redirect path after
I followed instructions on http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ and succesfully inserted sqlite database on android device so
There's a resource manager class. It helps us to access devices. But, of course,
Using Devise, I know how to protect controller actions from non-signed-in users through: before_filter
I'm using Devise 1.3.4 for authentication for the backend in my app. For a
I'm using Devise and Can-Can for my community blog and currently looking for a
Using Devise for authentication. On a controller that has: before_filter authenticate_user!, :except => [
Using devise, how do i make my Sign Up as my landing/welcome page and
Using devise , I have a User model. I do not have a user

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.