There´s already a new version of the acts_as_taggable mixin available
and look what it is capable of now:
# Gets the top 10 tags for all photos
Photo.tags_count :limit => 10 # => { 'beer' => 68, 'wine' => 37,
'vodka' => '22', ... }
# Gets the tags count that are greater than 30
Photo.tags_count :count => '> 30' # => { 'beer' => 68, 'wine' => 37 }
More about it here:
http://dema.ruby.com.br/articles/2005/09/06/tag-counting-anyone
I promise this is the last release of the week.
Cheers,
Demetrius
···
--
http://dema.ruby.com.br - Rails from a .NET perspective