From 3b72bb9d5928719194f166e303102fab03426022 Mon Sep 17 00:00:00 2001 From: Mezbah Alam Date: Sat, 20 Dec 2014 02:16:51 +0600 Subject: [PATCH] use strings rather than symbols I think that the type given by the flash is a string. --- app/helpers/application_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 527719f..032d777 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -6,9 +6,9 @@ def can_display_status?(status) def flash_class(type) case type - when :alert + when "alert" "alert-error" - when :notice + when "notice" "alert-success" else ""