【发布时间】:2016-08-06 04:39:40
【问题描述】:
我在这里尝试为“option_groups_from_collection_for_select”包含一个 include_blank 选项时遇到了一些麻烦 我想要 include_blank 选项,但在更新操作时显示当前选择的值而不是空白选择。我在这里尝试过,但它仍然显示为空白。
select_tag(:candidate_source, option_groups_from_collection_for_select(grouped_candidate_sources, :second, :first, :id, :source), { :include_blank => true, :selected => :source })
【问题讨论】:
标签: ruby-on-rails-3