ectomobile/app/views/devise/shared/_error_messages.haml

9 lines
283 B
Text
Raw Permalink Normal View History

2022-06-11 16:13:06 +00:00
- if resource.errors.any?
.alert.alert-primary
%h4.alert-heading
= 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