default selected value for scenario.icon select (#1861)

This commit is contained in:
Enfop 2017-01-07 02:05:47 +01:00 committed by Andrew Cantino
parent 89a9f2594f
commit b8765fbd31

View file

@ -51,7 +51,7 @@
<div class="form-group">
<div>
<%= f.label :icon %>
<%= f.select(:icon, options_for_select(Scenario.icons), {},
<%= f.select(:icon, options_for_select(Scenario.icons, @scenario.icon), {},
{:style => "font-family:'FontAwesome', Arial;", :class => 'select2-fountawesome-icon'}) %>
</div>
</div>