3

我有以下内容:

<%= f.select :phase_names, options_for_select(["RFP Stage", "Pre Contract", "Awarded", "Unsuccessful", "Completed"]), :class => 'inputboxes' %>

它将它存储在数据库中,但在编辑视图中它不显示存储的值。我该如何展示它?

4

1 回答 1

7

这个:

options_for_select(your_array_list, your_selected_value)
于 2012-07-04T12:48:11.237 回答