Join Table confusion

I have a view in which I would like to set values for three separate
join tables. Everything seems to work fine from the console but when
I use the _form.rhtml it only inserts values into the first join
table.

This is what I have in my _form.rhtml

Technicians:
<%= options_from_collection_for_select(@all_technicians, :id, :name, @selected_technicians) %>

Computer Models:
<%= options_from_collection_for_select(@all_computers, :id, :model, @selected_computers) %>

Licensed Software:
<%= options_from_collection_for_select(@all_licensed_programs, :id, :name, @selected_licensed_programs) %>

The html that is generated looks good too

Technicians:
Albert Martinez Chris Sanchez Luis Arvizu Orlando Garcia Richard Martinez Thao Dang

Computer Models:
Dell GX240

Licensed Software:
VIZ

I would guess I’m missing how/where it’s being passed to
ActiveRecord. Although technicians works and I have the subsequent
two constructed in a similar fashion.

Any help would be greatly appreciated.

Thanks,
Glen

use the select tag generator.

<%= select :model, :technicians, @all_technitions %>

Thank, I appreciate the reply. I was being stupid though and had a
couple of pieces missing in the controller.

Will <%= select :model, :technicians, @all_technicians %> generate a
multi-select? i.e. does it generate based on the relations defined in
the model?

On Feb 20, 10:20 am, Keynan P. [email protected]