fixed setting编辑类型下拉选中

This commit is contained in:
xiaoxiaoqiong 2022-02-15 17:10:57 +08:00
parent 8720cab1e9
commit 2f170a54c6
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
</div>
<div class="form-group ">
<label for="status">类型:</label>
<%= p.select :site_type, options_for_select(Site.site_types.map { |key, value| [key.humanize, key] }), {}, class: "form-control" %>
<%= p.select :site_type, options_for_select(Site.site_types.map { |key, value| [key.humanize, key] }, @site.site_type), {}, class: "form-control" %>
</div>
</div>
<div class="modal-footer">