Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tagging Plugin for MongoMapper
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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"])
Something went wrong with that request. Please try again.