Make rel=nofollow actually work - when in doubt trust the source as
authorTom Hughes <tom@compton.nu>
Sat, 14 Nov 2009 16:15:26 +0000 (16:15 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 14 Nov 2009 16:15:26 +0000 (16:15 +0000)
the rails documentation speaks with forked tongue.

app/helpers/application_helper.rb

index 9d2ae00..2eebec1 100644 (file)
@@ -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)