From 4d934a092515f6478b4d9adf491b9d13707449c1 Mon Sep 17 00:00:00 2001 From: AurelioAHeckert Date: Sat, 12 Jul 2008 17:58:28 +0000 Subject: [PATCH] ActionItem518: correct the product icons name on profile --- 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 53f0e08..3426655 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