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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:38:50+00:00 2026-06-15T16:38:50+00:00

I’ll try to be brief, but some detail is required. I’m trying to prototype

  • 0

I’ll try to be brief, but some detail is required. I’m trying to prototype a rewrite (in Rails) of a custom project management system. The primary purpose is to help companies who are relocating or expanding in Alabama to recruit, screen, and hire their workforce. The current system run on 4D and Active4D, which most people have never heard of. Horrible DB, but decent desktop client/server system.

For those who may have not heard, they build Mercedes, Honda and Hyundais in Alabama and most employees of those companies were hired through this agency using this system. Beside the big guys, there are numerous other companies who use this economic development agency to select their workforce. The process is mainly a project is started with the goal of hiring x amount of employees. Candidate are recruited from the Citizen of the state. The Candidates go through a selection process that has many phases or Stages – mainly Application, Interview, Assessment, Training, and Hire. Each Project is different and may have some custom Stages. Each Stage may have numerous assessments that are scored in some way (online application, interview score sheet, etc). After completion of the assessments in each Stage, Candidates are Progressed to the next stage, or eliminated from the project.

While the current DB structure is okay, we’ve tried to make some improvements. The below model and relations are snippets of the current prototype, going top down from the Citizen to the Project. Some of the through relations were added just to give a better picture of the DB structure. I forgot to point out that each Project may have different Programs that are usually job based. There are also numerous other models to aid in this management process (schedule events, manage instructors, etc) that are not depicted.

class Citizen < ActiveRecord::Base
  has_one :user, :as => :loginable
  has_many :candidates
  has_many :educations
  has_many :work_histories
  has_many :skills
end
class Candidate < ActiveRecord::Base
  belongs_to :program
  belongs_to :citizen
  has_many :progressions
end
class Progression < ActiveRecord::Base
  belongs_to :candidate
  belongs_to :stage
  has_many :scores
  has_one :citizen, :through => :candidate
end
class Stage < ActiveRecord::Base
  belongs_to :program
  has_many :assessors, :dependent => :destroy
  has_many :progressions, :dependent => :destroy
  has_many :candidates, :through => :progressions
  has_many :citizens, :through => :candidates
  has_many :educations, :through => :citizens
end
class Program < ActiveRecord::Base
  belongs_to :project
  has_many :stages, :order => "sequence", :dependent => :destroy
  has_many :candidates, :dependent => :destroy
end

There is a question coming! The Stage model is the key part of the system because it is where candidates are selected to progress to the next Stage. Since the current system was designed before an on-line presence, semi-static information such as education, skills, work history were not well defined and added as an assessment in the on-line application – which resulted in duplication of static information (Citizens apply for multiple projects and had to repeat the information that is part of their profile). The prototype still wants to evaluate some of that information (Do you have a high school diploma or GED?) along with custom Program specific assessments (How may years of welding experience do you have?).

We figured we could write a filter search to screen that static information and combine it with custom assessment score – that’s easier said that done. Each project may be looking for different education and skill requirements. It is almost like I need a custom scope for each project/program. I just started to look at things like Ransack and Squeel and they may help, but it would be up to the screeners to use the same filter – consistently.

Before the filter approach, I though about adding an feature to the assessment engine I wrote to somehow query the static information as basically a question and answer and score it. The question is how would you approach a filter that would look for Citizens who have specific Education accomplishments, have specific levels of experience in different Skills, have a certain status in in their current Progression, etc, etc. and then customize it for different Programs?

Of course I’m not looking for a specific answer, but approaches.

  • 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-15T16:38:51+00:00Added an answer on June 15, 2026 at 4:38 pm

    Sorry for the long post, but sometimes you have to write out what you are trying to figure out, before you figure it out!

    My solution ended up going back to my generic assessments engine and writing a method that would score things like education and other things connected to the Citizens model. The engine usually scored responses from a question/answer form. I just had to create a score object. The score is then part of the selection filter.

    I still would like to expand the filter capability and from a post on the Ransack wiki, it looks like it creates a search object (json?) that can be captured and probably stashed away someplace related to a project.

    Again, I apologize for the long post.

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

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I am trying to render a haml file in a javascript response like so:

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.