All Projects → huacnlee → mongoid_taggable_on

huacnlee / mongoid_taggable_on

Licence: MIT license
Taggable on custom fields for Mongoid

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to mongoid taggable on

NotionAI-MyMind
This repo uses AI and the wonderful Notion to enable you to add anything on the web to your "Mind" and forget about everything else.
Stars: ✭ 181 (+1031.25%)
Mutual labels:  tagging, tag
SSCTaglistView
Customizable iOS tag list view, in Swift.
Stars: ✭ 54 (+237.5%)
Mutual labels:  tagging, tag
Tags Input
🔖 <input type="tags"> like magic
Stars: ✭ 312 (+1850%)
Mutual labels:  tagging, tag
tag-picker
Better tags input interaction with JavaScript.
Stars: ✭ 27 (+68.75%)
Mutual labels:  tagging, tag
Id3
Library to read, modify and write ID3 & Lyrics3 tags in MP3 files. Provides an extensible framework for retrieving ID3 information from online services.
Stars: ✭ 27 (+68.75%)
Mutual labels:  tagging, tag
pheniqs
Fast and accurate sequence demultiplexing
Stars: ✭ 14 (-12.5%)
Mutual labels:  tagging, tag
React Input Tags
React component for tagging inputs.
Stars: ✭ 10 (-37.5%)
Mutual labels:  tagging, tag
Algoliasearch Rails
AlgoliaSearch integration to your favorite ORM
Stars: ✭ 352 (+2100%)
Mutual labels:  mongoid
Graphql devise
GraphQL interface on top devise_token_auth
Stars: ✭ 100 (+525%)
Mutual labels:  mongoid
Devise Security
A security extension for devise, meeting industrial standard security demands for web applications.
Stars: ✭ 302 (+1787.5%)
Mutual labels:  mongoid
mongoid-geospatial
A MongoDB/Mongoid Extension with optional GeoRuby/RGeo support.
Stars: ✭ 79 (+393.75%)
Mutual labels:  mongoid
Aasm
AASM - State machines for Ruby classes (plain Ruby, ActiveRecord, Mongoid, NoBrainer, Dynamoid)
Stars: ✭ 4,474 (+27862.5%)
Mutual labels:  mongoid
Simple token authentication
Simple (but safe) token authentication for Rails apps or API with Devise.
Stars: ✭ 1,474 (+9112.5%)
Mutual labels:  mongoid
Tomatoes
Pomodoro Technique® online time tracker
Stars: ✭ 344 (+2050%)
Mutual labels:  mongoid
9TAG
AutoTag script for 9gag. You can inject it using Tampermoney or Greasemonkey.
Stars: ✭ 15 (-6.25%)
Mutual labels:  tag
Rocketjob
Ruby's missing background and batch processing system
Stars: ✭ 258 (+1512.5%)
Mutual labels:  mongoid
meta-audio
A PHP library to read and write metadata tags to audio files (MP3, ID3, APE, etc)
Stars: ✭ 32 (+100%)
Mutual labels:  tagging
Groupify
Add group and membership functionality to your Rails models
Stars: ✭ 187 (+1068.75%)
Mutual labels:  mongoid
Mongoid rateable
Rating functionality for Mongoid documents
Stars: ✭ 59 (+268.75%)
Mutual labels:  mongoid
Fabrication
This project has moved to GitLab! Please check there for the latest updates.
Stars: ✭ 1,017 (+6256.25%)
Mutual labels:  mongoid

Mongoid Taggable On

Mongoid Taggable provides some helpers to create taggable documents, can use many fields.

Status

CI Status Gem Version

Installation

You can simple install from rubygems:

gem install mongoid_taggable_on

or in Gemfile:

gem "mongoid_taggable_on"

Usage

class Movie
  include Mongoid::Document
  include Mongoid::TaggableOn

  taggable_on :actors, index: false
  taggable_on :directors
  taggable_on :countries

  field :title
  field :summary
end

Now you can use sample:

irb> movie = Movie.new
irb> movie.actor_list = "Jason Statham, Joseph Gordon-Levitt, Johnny Depp, Nicolas Cage"
irb> movie.actors
["Jason Statham", "Joseph Gordon-Levitt", "Johnny De", "Nicolas Cage"]

irb> movie.country_list = "United States| China|Mexico"
irb> movie.countries
["United States", "China","Mexico"]

find with tag:

irb> Movie.tagged_with_on(:actors, "Jason Statham, Joseph Gordon-Levitt")
irb> Movie.tagged_with_on(:actors, "Jason Statham, Joseph Gordon-Levitt", match: :any)
irb> Movie.tagged_with_on(:actors, "Nicolas Cage", match: :not)

Allow split chars

, ,| /

Who used that?

In 720p.so, the Movie actors, directors, languages, countries, tags all base in mongoid_taggable_on.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].