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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:56:46+00:00 2026-05-13T19:56:46+00:00

I have a User model with the usual information (login, email, name, location, etc).

  • 0

I have a User model with the usual information (login, email, name, location, etc). However, when users decide to edit their information, I’d like to separate the fields to be edited according to the appropriate concerns.

For example, I’d like to have Name, Bio and Location to be edited on a Profile page or tab, and login, email and password to be edited on an Account page or tab.

What are the best practices, and the safest way, to accomplish that? Should I have two separate model/resources: User and UserProfile? Or can I just create something like a profile method in the UserController, with a custom form with only the specific profile fields, and link to it in the user page? I’m really confused on how to go about this.

Thanks in advance for any ideas you might have.

  • 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-13T19:56:46+00:00Added an answer on May 13, 2026 at 7:56 pm

    I think it depends on the rest of your Application. It sounds like in your case it’s good to be modular. If you want users to be able to see the profile of other users, it’s an advantage to have a separate model for the Profile and like it with a has_one relationship. I’d just call the class Profile so it can be accessed through user.profile in your controllers and views.

    Models:

    class User < ActiveRecord::Base
      has_one :profile, :dependent => :destroy
    end
    
    class Profile < ActiveRecord::Base
      belongs_to :user
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a User model that contains information such as username, email, hometown, etc.
I have a User Model(:name, :password, :email), and Event model(:name, :etc) and Interest model
I have a User Model(:name, :password, :email), and Event model(:name, :etc) and Interest model
I have a typical User model (username, password, name, etc). I want to allow
I have a User model with the usual attributes such as email and hashed_password
I have a User model that Devise manages - i.e. all users have email
I have a user model that requires the user to change their password every
For example, if I have a user model and I need to validate login
For instance, let's say I have a User model. Users have things like logins,
I have User model and I have following in the User model def name

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.