0
我在這裏嘗試爲'option_groups_from_collection_for_select'包含include_blank選項有一些問題我想要include_blank選項,但顯示當前選定的值而不是更新操作時的空白選擇。我在這裏嘗試過,但仍然顯示空白。option_groups_from_collection_for_select with include_blank選項
select_tag(:candidate_source, option_groups_from_collection_for_select(grouped_candidate_sources, :second, :first, :id, :source), { :include_blank => true, :selected => :source })