diff --git a/app/helpers/bootstrap_flash_helper.rb b/app/helpers/bootstrap_flash_helper.rb index 08d1fda8..1dbe6412 100644 --- a/app/helpers/bootstrap_flash_helper.rb +++ b/app/helpers/bootstrap_flash_helper.rb @@ -16,7 +16,7 @@ def bootstrap_flash(options = {}) Array(message).each do |msg| text = content_tag(:div, content_tag(:button, raw("×"), :class => "close", "data-dismiss" => "alert") + - msg.html_safe, :class => "alert fade in alert-#{type} #{options[:class]}") + msg.to_s.html_safe, :class => "alert fade in alert-#{type} #{options[:class]}") flash_messages << text if msg end end