Acts-as-taggable works great and everything but I was wondering if there was a way to restrict the tag cloud to only the most popular tags? Right not it looks like its ordering my cloud by the order in which the tags were created.
But it makes more sense to have the tag cloud show only the most popular tags.
My controller has:
def styles_tag_cloud
@tags = Tattoo.tag_counts_on(:styles).limit(40)
end
and my view has:
<% tag_cloud(styles_tag_cloud, %w(css1 css2 css3 css4)) do |tag, css_class| %>
<%= link_to tag.name, { :action => :tagged, :controller =>:index, :id => tag.name }, :class => css_class %>
<% end %>
But all this does is display the first 40 tags created, and then sizes each tag according to how many times its used
tag_counts_on
is documented here: github.com/mbleigh/acts-as-taggable-on (search for "Tag cloud calculations" on the page) – Biogeography