From 17445a44da9aaeb24e136c5fc6fc3634e6f10539 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 14 Nov 2009 16:15:26 +0000 Subject: [PATCH] Make rel=nofollow actually work - when in doubt trust the source as the rails documentation speaks with forked tongue. --- 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 9d2ae0071..2eebec170 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,6 +1,6 @@ module ApplicationHelper def htmlize(text) - return sanitize(auto_link(simple_format(text), :link => :urls, :href_options => { :rel => "nofollow" })) + return sanitize(auto_link(simple_format(text), :link => :urls, :html => { :rel => "nofollow" })) end def html_escape_unicode(text) -- 2.43.2