Let's say I have a table called positions (as in job positions). On the position show page I display all the detail about the job - awesome. At the bottom I need the prospective applicant to input their professional license # before continuing onto the next page which is the actual applicant creation form. I also need to take that license # and have it populate that field on the applicant form (again on the proceeding page).
I realize there are a couple ways to do this. Possibly the more popular option would be to store that value in the session. I am curious how to do this in the simplest manner?
My idea:
- Create a table specifically for license #'s.
- Add a small form on the position show page to create license # (with validation)
- Store newly created license in session - not sure what to put in which controller?
- On applicant creation form populate from session the license #.
This would assume applicants only have one license.
Thoughts?
Appreciate the help!