This commit is contained in:
BoHung Chiu 2021-05-31 15:29:28 +08:00
parent 654500a87d
commit 973c9fae74
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>
<div id="append_port_block"> <div id="append_port_block">
<% @site.port[1..-1].each do |port| %> <% @site.port[1..-1].to_a.each do |port| %>
<div class="port_block"> <div class="port_block">
<span class="remove_btn">X</span> <span class="remove_btn">X</span>
<%= number_field_tag("site_construct[port][]",port, :min => 1, :id => nil) %> <%= number_field_tag("site_construct[port][]",port, :min => 1, :id => nil) %>