有<%= @series.errors.count %>个错误:
<% errors = "" %> <% @series.errors.messages.values.each_with_index { |message, index| errors = errors + "#{index+1}.#{message.join(";")}; " } %> <%= errors %>系列新增/修改
<%= f.text_field :name, class: "form-control", placeholder: "name" %>
<%= f.text_field :sql_key, class: "form-control", placeholder: "sql_key" %>