Is your plugin hosted on GitHub? Make sure to press the "fetch" button next to the repository field to fetch your plugin's info from GitHub rather than typing it all in.
Repository
Name
Home Page
Short description Allows models to become taggable with multiple contexts per model.
Description ActsAsTaggableOn provides an 'acts' framework upon which a single model can have multiple static or dynamic tag contexts. Installation ------------ To install the plugin, simply get it straight from our public SVN repository: script/plugin install http://svn.intridea.com/svn/public/acts_as_taggable_on/ Then you will need to generate the migration for tags and taggings. This should do the trick: script/generate acts_as_taggable_on_migration Usage ----- Acts As Taggable On provides the same functionality of acts_as_taggable_on_steroids with the addition of the notion of "contexts," or scoped areas in which taggings can live. For the user example listed above, I can now simply make a call like so: class User < ActiveRecord::Base acts_as_taggable_on :tags, :skills, :interests, :sports end By taking the same one-liner tack as previous implementations, we are now able to set, find, retrieve, and calculate information based on tags within a context as well as as a whole. With the user model we just created: @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 # => [{Tag name:"awesome"},{Tag name:"slick"},{Tag name:"hefty"}] @user.skills # => [{Tag name:"joking"},{Tag name:"clowning"},{Tag name:"boxing"}] 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 # => [{Tag name="joking" count=2},{Tag name="clowning" count=1}...] @frankie.skill_counts Dynamic Contexts ---------------- In addition to the generated tag contexts in the definition, it is also possible to allow for dynamic tag contexts (this can be user-generated tag contexts!) @user = User.new(:name => "Bobby") @user.set_tag_list_on(:customs, "same, as, tag, list") @user.tag_list_on(:customs) # => ["same","as","tag","list"] @user.save @user.tags_on(:customs) # => [,...] @user.tag_counts_on(:customs) User.find_tagged_with("same", :on => :customs) # => [@user] And that's all there is to it! Now you can scope your tags to whatever arbitrary name you would like. The inflector is used to create the singular/plural methods, so be careful about making sure that your nomenclature uses plurals in the acts_as_taggable_on call. As a side note, this is meant to be used in place of acts_as_taggable_on_steroids, and the acts_as_taggable method works in acts_as_taggable_on simply by calling acts_as_taggable_on :tags. Caching has been written into the implementation but is not yet tested or verified to be working. Stay tuned for additional improvements to this plugin, and feel free to submit any bugs or patches to the [Intridea Open Source Trac](http://trac.intridea.com/trac/public/)
Description format RDoc MarkDown Textile
License Ruby's Rails' (MIT) GPL LGPL BSD Apache Artistic PublicDomain BSD-type Free-Trial Free-but-Restricted OpenSource Proprietary Shareware Source-available-proprietary Commercial
Category Assets Controllers Internationalization Misc. Enhancements Model Rails Engines Searching and Queries Security Statistics and Logs Testing View Extensions