Acts As Taggable On plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://svn.intridea.com/svn/public/acts_as_taggable_on/
Testing
=======
Acts As Taggable On uses RSpec for its test coverage. If you already have RSpec on your application, the specs will run while using:
rake spec:plugins
Example
=======
class User < ActiveRecord::Base acts_as_taggable_on :tags, :skills, :interests end @user = User.new(:name => "Bobby") @user.tag_list = "awesome, slick, hefty" # this should be familiar @user.skill_list = "joking, clowning, boxing" # but you can do it for any context! @user.skill_list # => ["joking","clowning","boxing"] as TagList @user.save @user.tags # => [,,] @user.skills # => [,,] User.find_tagged_with("awesome", :on => :tags) # => [@user] User.find_tagged_with("awesome", :on => :skills) # => [] @frankie = User.create(:name => "Frankie", :skill_list => "joking, flying, eating") User.skill_counts # => [,...] @frankie.skill_counts
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: scott, 5 months ago

