Tagging in rails with is_taggable

Posted by poseid on Stack Overflow See other posts from Stack Overflow or by poseid
Published on 2010-03-27T17:08:30Z Indexed on 2010/03/27 17:13 UTC
Read the original article Hit count: 335

Filed under:
|

there is an example provided on how to add tags to a model with is_taggable, and it works very nice (working in 5 minutes)

Now, I also need the opposite, show all records that are tagged with a certain word.

Something like:

ModelWithTag.find_by_tags "foo"

or

find_all_tagged_with "foo"

Is this possible with is_taggable ?

© Stack Overflow or respective owner

Related posts about rails

Related posts about tagging