5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 16:16:22 +00:00
panel/app/views/devise/shared/_error_messages.haml

10 lines
326 B
Text
Raw Normal View History

2019-07-03 19:57:16 +00: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