Say I have a table called positions (like in workplaces). On the show position page, I show all the details about the job - awesome. Below, I need a future applicant to enter their professional license # before moving on to the next page, which is the actual form for creating the applicant. I also need to take this license # and fill out this field in the applicant form (again on the continue page).
I understand that there are several ways to do this. Perhaps a more popular option would be to keep this value in the session. I am curious how to do this in the easiest way?
My idea:
- Create a table specifically for license #.
- Add a small form to the line item’s page to create license # (with validation)
- Save the newly created license in the session - do not know what to add to the controller?
- Fill out license # in the form for creating an applicant from the session.
This assumes that applicants have only one license.
Thoughts?
Appreciate the help!
source
share