Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Showing only the most popular tags in the acts_as_taggable_on tag cloud
- def styles_tag_cloud
- @tags = Tattoo.tag_counts_on(:styles).limit(40)
- end
- <% 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 %>
- @tag_counts = Post.tag_counts_on(:tags).limit(10)
Add Comment
Please, Sign In to add comment