我有以下内容:
<%= f.select :phase_names, options_for_select(["RFP Stage", "Pre Contract", "Awarded", "Unsuccessful", "Completed"]), :class => 'inputboxes' %>
它将它存储在数据库中,但在编辑视图中它不显示存储的值。我该如何展示它?
我有以下内容:
<%= f.select :phase_names, options_for_select(["RFP Stage", "Pre Contract", "Awarded", "Unsuccessful", "Completed"]), :class => 'inputboxes' %>
它将它存储在数据库中,但在编辑视图中它不显示存储的值。我该如何展示它?