This plugin implements Flickr's machine tags as explained here[] while still maintaining standard tagging behavior. Basically, a machine tag has a namespace, a predicate and a value in the format [namespace]:[predicate]=[value] This allows for more precise tagging as tags can have unlimited contexts provided by combinations of namespaces and predicates. These unlimited contexts also make machine tags ripe for modeling relationships between objects. Read the HasMachineTags::TagMethods class documentation for a more thorough explanation. A demo app using this plugin is here. This gem should run on all major Ruby versions and work with Rails 2.3.x and up.

installgem install has_machine_tags

Gabriel Horner

8,225 total downloads 627 for this version




gem 'has_machine_tags', '~> 0.2.2'
  1. 0.2.2 May 1, 2013 (15.5 KB)
  2. 0.2.1 February 24, 2012 (15.5 KB)
  3. 0.2.0 May 30, 2011 (15 KB)
  4. 0.1.8 September 30, 2010 (14.5 KB)
  5. 0.1.7 June 10, 2010 (14.5 KB)
Show all versions (6 total)