teddim/gCamp

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

Summary

Maintainability
Test Coverage
- if object.errors.any?
  .row
    .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
    .col-md-3