Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Tagging Plugin for MongoMapper

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.mdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 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.