assemblymade/coderwall

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

Summary

Maintainability
Test Coverage
-if target.errors.any?
  .errors
    %h4
      = "#{pluralize(target.errors.count, "error")} prohibited this #{target.class.model_name.human.downcase} from being saved:"
    %ul
      -target.errors.full_messages.each do |message|
        %li=raw message