lib/generators/slim/scaffold/templates/_form.html.slim.tt in slim-rails-3.4.0 vs lib/generators/slim/scaffold/templates/_form.html.slim.tt in slim-rails-3.5.0

- old
+ new

@@ -1,8 +1,8 @@ = form_with(model: @<%= model_resource_name %>) do |form| - if @<%= singular_table_name %>.errors.any? div style="color: red" - h2 = "#{pluralize(@<%= singular_table_name %>.errors.count, 'error')} prohibited this <%= singular_table_name %> from being saved:" + h2 = "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:" ul - @<%= singular_table_name %>.errors.each do |error| li = error.full_message <% attributes.each do |attribute| -%>