2018-07-31 17:26:08 +02:00
|
|
|
#flash_messages
|
|
|
|
- if flash.any?
|
|
|
|
#flash_message.center
|
|
|
|
- flash.each do |key, value|
|
|
|
|
- if value.class == Array
|
|
|
|
.alert{ class: flash_class(key) }
|
|
|
|
- value.each do |message|
|
|
|
|
= sanitize(message)
|
|
|
|
%br
|
|
|
|
- else
|
|
|
|
.alert{ class: flash_class(key) }
|
|
|
|
= sanitize(value)
|