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