lgs / mongoid_taggable_with_context

A tagging plugin for Mongoid that allows for custom tagging along dynamic contexts with real-time aggregation (pre-aggregated).
http://rubygems.org/gems/mongoid_taggable_with_context
MIT License
19 stars 20 forks source link

Find the object by tags #5

Closed satish-zol closed 11 years ago

satish-zol commented 11 years ago

How do I get all the object by tags?

Thanks

johnnyshields commented 11 years ago

See tagged_with method.

    # @example Find matching all tags in an Array.
    #   Article.tagged_with(['ruby', 'mongodb'])
    # @example Find matching all tags in a String.
    #   Article.tagged_with('ruby, mongodb')

@lgs this issue should be closed.