mberlanda/cheidelacoriera

View on GitHub
app/views/shared/_error_messages.html.haml

Summary

Maintainability
Test Coverage
- if errors.any?
  .alert.alert-danger#error_explanation
    %h2= ti(:"errors.header", count: errors.count, model: object.to_s)
    %ul
      - errors.full_messages.each do |msg|
        %li= msg