Tagging Plugin for MongoMapper
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib added gemspec file and ignored the pkg directory Jan 17, 2010
test
.gitignore changed to use mongo_tagger instead of mongotagger Jan 17, 2010
README.mdown
Rakefile
VERSION
mongo_tagger.gemspec

README.mdown

MongoTagger

Tagging plugin for MonogoMapper

Install

sudo gem install mongo_tagger

Dependencies

  • MongoMapper - 0.6.1

Usage

class Post
  include MonogoMapper::Document
  include MongoTagger
  key :title, String, :required => true
end

post = Post.create(:title => "Hello There!")
post.tag_list = "monogomapper, is, awesome"
post.save

Post.find_tagged_with("mongomapper")
Post.find_tagged_with("mongomapper, awesome")
Post.find_tagged_with(["mongomapper","is","awesome"])