How can I have a collection_select with 5 options to chose from and when either one is chosen it cannot be picked again for the next (i.e. if 1 is picked first then only 2,3,4,5 are available to pick from).
I have two tables: invoices and Invoice_Line_Items , invoice has_many Invoice_Line_items. Invoice_Line_Items belongs_to Invoice. The options are relations. For instance, I cannot invoice twice for the same item.
<%= collection_select( :invoice_line_item, :invoice_line_item_id, @invoice_line_items, :id, :supplier_id, {}, {:multiple => true}) %>
Thank you