Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
artemk committed Aug 1, 2011
1 parent b449a36 commit 79a1209
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.rdoc
Expand Up @@ -96,7 +96,7 @@ This way you can mix and match to filter down your results, and it also improves
compatibility with the will_paginate gem:

class User < ActiveRecord::Base
acts_as_taggable_on :tags
acts_as_taggable_on :tags, :skills
named_scope :by_join_date, :order => "created_at DESC"
end

Expand All @@ -108,7 +108,10 @@ compatibility with the will_paginate gem:

# Find a user with any of the tags:
User.tagged_with(["awesome", "cool"], :any => true)


# Find a user with any of tags based on context:
User.tagged_with(['awesome, cool'], :on => :tags, :any => true).tagged_with(['smart', 'shy'], :on => :skills, :any => true)

=== Relationships

You can find objects of the same type based on similar tags on certain contexts.
Expand Down

0 comments on commit 79a1209

Please sign in to comment.