From 15ba22f3a6ab72dd9e5e601259a79c5a027654c8 Mon Sep 17 00:00:00 2001 From: AurelioAHeckert Date: Sat, 12 Jul 2008 18:23:23 +0000 Subject: [PATCH] ActionItem518: correct the product icons name on profile - 2 --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3426655..3d39180 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -369,7 +369,7 @@ module ApplicationHelper icons = profile.product_categories.map{ |c| c.size > 1 ? c[1] : nil }. compact.uniq.map{ |c| - cat_name = c.gsub( /[-\s,.;'"]+/, '_' ) + cat_name = c.gsub( /[-_\s,.;'"]+/, '_' ) cat_icon = "/images/icons-cat/#{cat_name}.png" if ! File.exists? RAILS_ROOT.to_s() + '/public/' + cat_icon cat_icon = '/images/icons-cat/undefined.png' -- libgit2 0.21.2