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

  • Home
  • SEARCH
  • 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 767107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T17:09:27+00:00 2026-05-14T17:09:27+00:00

Rails 2.1.0 (Cannot upgrade for now due to several constraints) I am trying to

  • 0

Rails 2.1.0 (Cannot upgrade for now due to several constraints)
I am trying to achieve this. Any hints?

  1. A project has many users through join model
  2. A user has many projects through join model
  3. Admin class inherits User class. It also has some Admin specific stuff.
  4. Admin like inheritance for Supervisor and Operator
  5. Project has one Admin, One supervisor and many operators.

Now I want to
1. submit data for project, admin, supervisor and operator in a single project form
2. validate all and show errors on the project form.

Project has_many :projects_users ; has_many :users, :through => :projects_users
User has_many :projects_users ; has_many :projects, :through => :projects_users
ProjectsUser = :id integer, :user_id :integer, :project_id :integer
ProjectUser belongs_to :project, belongs_to :user
Admin < User # User has 'type:string' column for STI
Supervisor < User
Operator < User

Is the approach correct? Any and all suggestions are welcome.

  • 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-14T17:09:27+00:00Added an answer on May 14, 2026 at 5:09 pm

    I ended up using virtual attributes for admin, supervisor and operators
    everything else went through ORM associations

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

Sidebar

Related Questions

rails-project git:creating-models ❯ rails console Loading development environment (Rails 3.2.1) Couldn't load Wirble: cannot
I'm running Rails 2.3.5 on a hosted server, and cannot upgrade to 3. I
I am using rails 3.1rc4 with paperclip and i cannot upload any image file
I'm trying to ensure a boolean value in my Rails model cannot be set
I cannot deploy my Rails 3.1rc4 app to Heroku even though I added this
I have been trying to upgrade my app from Rails 2.3 to Rails 3.
I am using GDAL in my rails 3 project. I cannot seem to figure
I cannot figure out why rails/ruby cannot see this gem, despite each telling me
Frustratingly my laptop has Rails 3 on it, although I cannot find much supporting
I am working with Rails and I cannot seem to get past this error.

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.