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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:58:29+00:00 2026-06-02T18:58:29+00:00

I am working with Rails 3, and I have a model called User that

  • 0

I am working with Rails 3, and I have a model called User that authors a Syllabus. I would like to add the feature of “co-authoring” a syllabus, so the original author can invite a different user to make changes to the content.

Which options below makes more sense? (If there’s something better, please let me know)

  1. make the author attribute an array attribute, so that Syllabus.author would be an array containing all of its authors

  2. create additional attributes to Syllabus, such as coauthor1, coauthor2

If the first one makes more sense, would you be able to specifically describe how would I make it an array attribute, and insert additional authors later?

One reason I was considering the second option was because that would allow a distinction between the original author and the other co-authors, enabling perhaps only the original author to delete the Syllabus, while other co-authors have limited authority?

  • 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-02T18:58:30+00:00Added an answer on June 2, 2026 at 6:58 pm

    You can also make linking table like this:

    autorhs_syllabus
    ----------------------
    id
    author_id integer
    syllabus_id integer
    original_author boolean 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with Rails 3.2.2. And I have a devise model called user. In
On a Rails application I'm working on, I have a model Type that relates
I am thinking of working on a Rails application that uses PostgreSQL. I have
In my application I have an extended User model called UserProfile. This user can
I have a rails model called 'audioclip'. I orginally created a scaffold with a
I'm working on a Rails application. I have a Module called Animals. Inside this
I have a rails model that I am adding validations to and I seem
I am working with Rails 2.3 and I have the following associations: User: has_many
I have a model called User . I have pluralize_table_names set to false so
I am currently working on Rails 2.3.5. I have a model Blog and Blog

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.