# \[ANN\] New Plugin - Nofollow Links

**URL:** <https://www.ruby-forum.com/t/ann-new-plugin-nofollow-links/114158>\
**Category:** Rails\
**Created:** [September 8, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/ann-new-plugin-nofollow-links/114158 "2007-09-08T20:33:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ss\_1982](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Post date:** [September 8, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/ann-new-plugin-nofollow-links/114158/1 "2007-09-08T20:33:30Z")

</div>

This is a simple plugin that will add a before\_save callback to add  
nofollow to all links within the given fields.

Example use:

Install the plugin:

ruby script\plugin install  
[http://svn.railslodge.com/svn/plugins/nofollow\_links/](http://svn.railslodge.com/svn/plugins/nofollow_links/)

Simply add this to the required fields

e.g. Example model:

class Plugin \< ActiveRecord::Base  
#plugins  
nofollow\_links :content, :title  
end

See [http://www.railslodge.com/blogs/11/](http://www.railslodge.com/blogs/11/) for further details.
