tap/app/views/application/_errors.html.haml
2015-09-17 14:05:33 +02:00

9 lines
292 B
Text

- if object.errors.any?
.panel.panel-danger.form-errors
.panel-heading
= pluralize(object.errors.count, "error")
prohibited this #{object.class.name.downcase} from being saved:
.panel-body
%ul
- object.errors.full_messages.each do |msg|
%li= msg