]> git.openstreetmap.org Git - rails.git/commitdiff
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 9d2ae0071fe23b6e0472291d2244e3c44535d717..2eebec1708378663a5bc4f67ad828ec5dd847da9 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)