I have the following:
<%= f.select :phase_names, options_for_select(["RFP Stage", "Pre Contract", "Awarded", "Unsuccessful", "Completed"]), :class => 'inputboxes' %>
It is storing it in the database, but in the edit view it does not show the stored value. How do I show it?
This:
options_for_select(your_array_list, your_selected_value)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With