teddim/gCamp

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

Summary

Maintainability
Test Coverage
- if object.errors.any?
  .row
    .col-md-2
    .col-md-7
      .alert.alert-danger
        %h3
          = pluralize(object.errors.count, "error")
          prohibited this form from being saved:
        - object.errors.full_messages.each do |error|
          %ul
            %li
              = error