From 1bbeefe805efba28ef9c237a1c27f3f1ce1d5dc0 Mon Sep 17 00:00:00 2001 From: hukl Date: Mon, 2 Feb 2009 23:46:46 +0100 Subject: refactored the whole tagging thing. now using acts_as_taggable_on_steroids instead of a homebrew solution --- app/helpers/content_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/helpers') diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 3cf3488..385bca0 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb @@ -10,7 +10,7 @@ module ContentHelper begin if content =~ /]*)>/ tag = $~.to_s - matched_data = $1.scan(/\w+\=\"[a-zA-Z\s\/_\d]*\"/) + matched_data = $1.scan(/\w+\=\"[a-zA-Z\s\/_\d,]*\"/) matched_data.each do |data| splitted_data = data.split("=") @@ -18,6 +18,8 @@ module ContentHelper end content.sub(tag, render_collection(options)) + else + content end rescue -- cgit v1.3