residency/app/views/devise/shared/_error_messages.html.haml

10 lines
326 B
Plaintext
Raw Normal View History

2022-12-20 16:33:23 +01:00
- if resource.errors.any?
#error_explanation
%h2
= I18n.t("errors.messages.not_saved", |
count: resource.errors.count, |
resource: resource.class.model_name.human.downcase) |
%ul
- resource.errors.full_messages.each do |message|
%li= message