app/views/atdis/_attribute_error_table.html.haml
%table.atdis
%tr
%th JSON parameters
%th.error Errors
- model.json_errors.map do |attr, errors|
%tr
%td
- if attr
%pre= truncate(MultiJson.dump(attr, pretty: true), length: 500)
%td
- errors.each do |e|
%p
%span.highlight= e.message
- if e.spec_section
— see
= link_to "section #{e.spec_section} of specification", atdis_specification_path(anchor: "section#{e.spec_section}")