From 979a4ecb2295ad8c0fb71f947da2d60c0843ab3b Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 1 Jan 2012 13:45:30 +0000 Subject: Rails3: helper: html_safe for SearchHelper render_results_by_type method Contributed by Sylvain Utard. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8456 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/search_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index aab402070..7a66e734d 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -63,6 +63,8 @@ module SearchHelper links << link_to(h(text), :q => params[:q], :titles_only => params[:titles_only], :all_words => params[:all_words], :scope => params[:scope], t => 1) end - ('') unless links.empty? + (''.html_safe) unless links.empty? end end -- cgit v1.2.3