Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Auto Tags

Auto Tags

Author: Sur http://expressica.com Homepage: http://expressica.com/auto_tags License: MIT

Intoroduction

AutoTags is a rubyonrails plugin to automatically generate the relevant tags from the provided content. The tags further can automatically be pushed in database using the legacy acts_as_taggable plugin. The plugin is very useful for social networking site, communities sites and all those public sites where there is a scope of huge content. So, no more manually tagging all your content… just a simple and slick solution.

Example

model specific usage

  1. single attribute example class Vendor < ActiveRecord::Base auto_tags :include => :product end
  1. multiple attributes example class Vendor < ActiveRecord::Base auto_tags :include => [:product, :description] end
  1. associations example class Book < ActiveRecord::Base has_many :authors auto_tags :include => [:title, :description, :authors_names]

    def authors_names authors.collect{|a| a.name.join(’ ‘)} end

    end

generic usage

AutoTags::AutoTagsGenerator.generate_tags(content)

Copyright© 2008 [Sur http://expressica.com], released under the MIT license

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

'None'