Auto Tags plugin

Plugin details

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.

Websitehttp://expressica.com/auto_tags/ Repositoryhttp://auto-tags.googlecode.com/svn/trunk/auto_tags/ Author Sur Tags tag, Social LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://auto-tags.googlecode.com/svn/trunk/auto_tags/

model specific usage

  # single attribute example
  class Vendor < ActiveRecord::Base
    auto_tags :include => :product
  end

  # multiple attributes example
  class Vendor < ActiveRecord::Base
    auto_tags :include => [:product, :description]
  end

  # 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::AutoTagsGeneration.generate_tags(content)

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago