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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:57:40+00:00 2026-06-17T00:57:40+00:00

Sorry that I don’t have the proper terminology to more concisely describe my database

  • 0

Sorry that I don’t have the proper terminology to more concisely describe my database design question. Put in an example scenario:

  • User Charley logs onto a forum (“forum” merely as example app here), and before he is taken to the forum interface he must select which room he wants to go into. The only rooms available are “People into drama” and “People into scifi”. Charley is dissatisfied with the selection, and has the ability to make his own room called “People into action”, which he then choose to go into. “People into action” has the complete same forum interface as the other rooms, except is unpopulated.

  • User Franny logs onto the same forum app, and now sees there are 3 rooms, including the one Charley previous created. She could then also create her own room, or go into the room Charley has just created.

*For additional clarification, I envision /roomname1/forum and /roomname2/forum, where the forum is the same app with the same display and functions, but the posts it show would be different based on first part of the URI with roomname. What I have difficulty understanding is how to properly associate a post’s post.room (given that a room has_many posts, and a post belongs_to a room) with what the first part of the URI where the roomname is identified.

I have just recently completed the Hartl’s Rails Tutorial, and thought I’d get more experience making my own modifications to the default Twitter-like app. My goal here would be to set up these “rooms” where users could see the universe of microposts associated only with the “room” they are in, and not others.

Thanks for your help!

  • 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-17T00:57:41+00:00Added an answer on June 17, 2026 at 12:57 am

    There are many ways you could do this, here is a quick high level that should get you started.

    • Create a model and controller (eg. Room/RoomsController)
    • RoomsController could be RESTfull
    • Define your routes
    • User goes to Rooms controller, index action and will see a list of rooms.
    • User can see all rooms and Add/Enter a Room (Enter could be your show action, add could be create)

    You could build and add to this to enable users to delete/edit rooms they have created as a next step perhaps. You may want to associate posts, so they could belong_to for example. Hope this helps get you started!

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

Sidebar

Related Questions

Sorry that I don't have an example. However I'm creating a scrolling box (scrolls
I am sorry that I duplicate this question , but I don't have the
I'm sorry that I put this question because I think that is simple but
Sorry that I have to describe the functionality in such a roundabout manner, but
I'm sorry that I couldn't figure out a way to express the question more
[I'm sorry that this isn't directly a programming question. But I have recently switched
Update 1, more details My question was hard to interpret, sorry for that.... Simple
Sorry if the title is not that specific, but I don't know how else
first of all, sorry if that question is dumb but I´m a total newbie
This question will be a little longer and I am sorry for that :)

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.