Update categories_order.html.erb

fix error
This commit is contained in:
chiu 2019-09-18 21:20:05 +08:00
parent a53f213efb
commit 956d51c0e6
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<% count = all_locales.length %> <% count = all_locales.length %>
<% @cats.each do |cat| %> <% @cats.each do |cat| %>
<% all_locales.each_with_index do |locale,index| %> <% all_locales.each_with_index do |locale,index| %>
<%= "#{cat[0].title[locale]}" %> <%= "#{cat[0][:title][locale]}" %>
<%= index!=(count-1) ? "/" : ":" %> <%= index!=(count-1) ? "/" : ":" %>
<% end %> <% end %>
<input type="number" name="sort_number-<%= cat[0].id %>" value="<%= cat[1].to_s %>"> <input type="number" name="sort_number-<%= cat[0].id %>" value="<%= cat[1].to_s %>">