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 8250653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:57:59+00:00 2026-06-07T23:57:59+00:00

I am using Devise 2.0.0 and Rails 3.2.3 on OSX. Is it possible to

  • 0

I am using Devise 2.0.0 and Rails 3.2.3 on OSX.

Is it possible to override both a Devise controller and a Devise view at the same time?

I was successfully overriding the confirmations/new view with my own scoped view, located in views/users/confirmations/new.html.erb. The scoped view was working fine.

Then I found it necessary to override the Devise::ConfirmationsController with my own controller, AppConfirmationsController, in order to customize the after_confirmation_path_for method to return my own custom path.

class AppConfirmationsController < Devise::ConfirmationsController
  protected
    def after_confirmation_path_for(resource_name, resource)
      confirmed_app_custom_path
    end
end

I altered the route so that my custom controller would be used

devise_for :users, :controllers => {:confirmations => 'app_confirmations'}

The new controller is working fine, but my scoped view is no longer being recognized. Instead of rendering my scoped view, the devise default view is being rendered. If I stop using my custom controller, my scoped view starts working again.

Am I missing some configuration setting that affects scoped views when using a customer controller?

  • 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-07T23:58:01+00:00Added an answer on June 7, 2026 at 11:58 pm

    Not sure if this will work since I wasn’t using scoped views, but I ran into a similar problem when overriding the default devise registration view and controller.

    For me I had to make sure the parent directory of my view had the same name as the new devise controller, and everything worked fine.

    i.e. devise_for :users, :controllers => { :registrations => "app_registrations" }
    and then my custom controller at views/app_registrations/new.html.erb

    Does moving your view to views/users/app_confirmations/new.html.erb help?

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

Sidebar

Related Questions

I'm using Rails 3 and Devise 2.0 In the index view of the Posts
I'm using devise in my rails 3.2 application. I have a users/new page where
I am using devise plugin in my new Rails App. My issue is devise
I'm using Devise in a Rails 3 app, and I successfully configured it so
I'm new to Rails and I'm trying to create an app using devise for
I currently am using Rails' Devise plugin to handle login/authentication. I am using a
I am using devise 2.1.0 for my rails app 3.2.3. Here is what I
I have a rails app that is using Devise perfectly in development. I have
I am using Devise to manage authentication in a Rails 3.1 application. It works
So I am using Devise for user authentication in my rails app. I have

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.