I have 3 tables with HABTM relation.
USERS -> QUOTE_TO_USER <- QUOTES
Table QUOTE_TO_USER has 3 attributes: quote_id, user_id, component.
I have a form where I can tie multiple users to QUOTE. This is easy one,
thru “user_ids” (@quote[:user_ids] = @params[:quote][:user_ids]).
In this form I have all users and I just check those I want to tie to
this quote, however there’s one more attribute COMPONENT (the value of
the COMPONENT atribute is chosen from drop-down in this form), but I
don’t know how to save this change in QUOTE_TO_USER table. Need to make
multiple save for those users that I checked (tied with QUOTE table).
I hope I made my problem clear to you,
thanks for all ideas…and your help…