danielweinmann/unlock

View on GitHub
app/views/application/_error_explanation.html.slim

Summary

Maintainability
Test Coverage
- if resource.errors.any?
  #error_explanation.warning
    h3 = I18n.t("errors.messages.not_saved", count: resource.errors.count, resource: resource.class.model_name.human.downcase)
    ul
      - resource.errors.full_messages.each do |msg|
        li= msg