Tagging Plugin for MongoMapper
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
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"])