= hidden_field_tag "parent_id", params[:parent_id] = hidden_field_tag "parent_type", params[:parent_type] - if @record && @record.errors.messages.present? ul.form_errors - @record.errors.messages.each do |k, v| li = "#{I18n.t(k, scope: [:errors, :items])}: #{v.join(', ')}"