Do not display invalid alert
This commit is contained in:
parent
3fac766bef
commit
3398877fe8
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
<% unless flash.empty? %>
|
||||
<div class="container">
|
||||
<% flash.each do |type, msg| %>
|
||||
<% flash.select { |_, msg| msg.is_a? String }.each do |type, msg| %>
|
||||
<div class="alert <%= bootstrap_class_for_flash type %> alert-dismissable fade show mt-3">
|
||||
<%= msg %>
|
||||
<button class="close" data-dismiss="alert">x</button>
|
||||
|
|
Reference in a new issue