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