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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:41:35+00:00 2026-05-27T23:41:35+00:00

I’ve giving myself a small project to help me improve with my ruby on

  • 0

I’ve giving myself a small project to help me improve with my ruby on rails programming. So far I’ve completed full user signup and authentication with password reset, a remember me feature and notification emails. I totally understand what is going on.

So I’ve now moved to the user account area and would like to code the page that my user would edit their profile on. My signup form only asked for username, email and password as I wanted quick registration. For the page where users will edit their profile information it will ask them for things such as:

first name
last name
date of birth
location
it will have the url for their profile
about me
personal stats
favoyrite things
status etc
and their photos

They should be able to update or change this info on the fly. On their actual profile page it will pull this info for their profile content.

I was wondering to keep organised would it be best to created a separate table for this e.g. profile? or would it be wise to store some of this info in the users table in the database, such as first name last name?

I’m trying to figure out a clean way to do this because later on I’ll need to add more pages like the settings page etc.

This is the first time I’ll be working with multiple tables and I have an idea how to do it but not too sure. Any advice such as a brief explanation of how you would achieve this would be appreciated.

Regards

  • 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-27T23:41:36+00:00Added an answer on May 27, 2026 at 11:41 pm

    I know I will get flak from people for oversimplifying a subjective situation. But at times an open discussion around the scenarios that make the situation subjective can help in decision making. So, here is my take.

    Are you using devise or some such gem for the authentication piece? If yes then you probably have the tables created per the requirements of that gem. If you look at separation of concerns, whatever is needed for the authentication + authorization system is pretty much encompassed in your existing user table. I would approach it by asking – is there any benefit of coupling your profile data (especially if it is more than a couple of text fields) with this table? I don’t see one especially given the fact that profiles or user-generated permanent data are no longer guaranteed to be just one picture and 2-3 text fields. For example, on social networking sites the profile can take a life of its own.

    Also, what happens if your site takes off. If you have an active user base that adds/updates pics, location info and other data to the profile, do you want that to start impacting your authentication tables? If you hit a resource crunch, a standalone authentication system can be your last concern. But not so if it has been coupled with everything user-related.

    So, yes it does depend on your particular circumstance but I hope my thoughts above provide you some clarity on why the decision may differ based on the type of the site. If the user is at heart of your system and user interactions are key to the profile (e.g. social networks) definitely think about keeping the two areas separated. If user profile is probably just one-line about the user then it is not a big concern. If you are doing this purely for learning, try it out both ways because you will have more arsenal for future challenges.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I need to clean up various Word 'smart' characters in user input, including but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to understand how to use SyndicationItem to display feed which is
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

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.