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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:57:21+00:00 2026-05-25T05:57:21+00:00

I am using Devise in a rails app for User Auth. I have already

  • 0

I am using Devise in a rails app for User Auth. I have already created both the registrations and sessions controller, but now I want a controller that simulates the def update from scaffolding. Is there a way to access the controller that Devise uses to update a user?

  • 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-25T05:57:22+00:00Added an answer on May 25, 2026 at 5:57 am

    Yes, you can subclass the registrations_controller used by devise to edit users and do whatever you want with the update action, this is the subclassed controller with the default update action in it:

    class Users::RegistrationsController < Devise::RegistrationsController  
    
      def update
        self.resource = resource_class.to_adapter.get!(send(:"current_#{resource_name}").to_key)
    
        if resource.update_with_password(params[resource_name])
          set_flash_message :notice, :updated if is_navigational_format?
          sign_in resource_name, resource, :bypass => true
          respond_with resource, :location => after_update_path_for(resource)
        else
          clean_up_passwords(resource)
          respond_with_navigational(resource){ render_with_scope :edit }
        end
    
     end
    
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails app that uses Devise for user auth. In localhost:3000 my
I have a Rails 3 App using devise. I want to create a User/Profile
I'm using Devise in a Rails 3 app, but in this case, a user
I have a rails app that is using Devise, with a User model, no
I am using Devise in Rails 3, and have a User model in rails
I'm starting using Devise in my Rails app, but the Token Authenticatable : signs
I am using Devise and omniauth for authentication in my rails app. I have
I have a Rails 3 App using Devise on Heroku. Problem is I'm sending
I have a Rails 3 app and I'm using Devise and jQTouch. I've got
I have a Rails 3 app with authentication setup using Devise with the registerable

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.