mardi 20 octobre 2015

How save two values from single drop down?

f.input :contact_label, :as => :select, :collection => 
  option_groups_from_collection_for_select(User.order(:user_name), :contact_labels, :user_name, :id, :label_name)

In this single drop down I want to save both user and contact_label value in the table but it only save the contact_label value.

Aucun commentaire:

Enregistrer un commentaire