Forum: Ruby on Rails [PATCH] acts_as_taggable plugin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Luca M. (Guest)
on 2006-02-17 00:56
(Received via mailing list)
hi,
I started today to use the acts as taggable plugin and it's working as
expected.

I added a method find_tagged_with_all since I needed to find the
elements tagged with all the items in a list while find_tagged_with
finds all the elements tagged with any of the list terms.

Attached to this mail there's a patch which adds the
find_tagged_with_all method and which solves a small problem with having
duplicate elements being found by he find_tagged_with method when more
than one tag matches (it just required adding a "distinct" to the
query).

I have just one question regarding the plugins which i have not clear:
is there any standard or convention to be used when preparng tests for
them? While i have clear the process for regular rails apps, I wanted to
build them for this diff but didn't know where to start.

Thanks
Luca M.
Bob S. (Guest)
on 2006-02-17 01:17
(Received via mailing list)
Luca, could you also put this in the Rails Trac if you haven't already.
Thanks for contributing.

Bob S.
http://www.railtie.net/
This topic is locked and can not be replied to.