Firstly apologies for posting again.
I have been through a load of headache and days deep in google trying to
find an example/solution to my problem.
A lot of good people have been helping out a lot but I still haven't
managed to knock it over yet.
So, I am offering $50USD (via paypal) to anyone who can get this working
for me. Or I can send you something cool from Thailand (where I live)
I have the following models in a has_many :through relationship.
Job, Division, JobDivisions.
Each job can involve any number of divisions.
The 3 things I need to do:
1. When I create a new Job I want to be able to select the appropriate
divisions using checkboxes.
2. I guess I will probably need to edit a job later - add/remove
3. The other step in 'setting up a job' is I have a script that builds
a bunch of different directories depending on the divisions the job has.
This, hopefully, will get information from the JobDivisions JOIN table -
basically 'how many directories for each division to build'.
Most importantly I need to work out point (1).
Maybe the only problem is that I have no idea how to use the checkbox's
output to create new JobDivisions.
I am using form_for, but am wondering if I should be using form_for_tag
My tables seem to be ok - the JobDivision table has job_id:integer,
division_id:integer & one called shotamount:integer - for point (3)
Very Sincerely!, Adam
As for errors I currently get: