daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Aug 20th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Showing only the most popular tags in the acts_as_taggable_on tag cloud
  2. def styles_tag_cloud
  3.      @tags = Tattoo.tag_counts_on(:styles).limit(40)
  4.   end
  5.    
  6. <% tag_cloud(styles_tag_cloud, %w(css1 css2 css3 css4)) do |tag, css_class| %>
  7.   <%= link_to tag.name, { :action => :tagged, :controller =>:index, :id => tag.name }, :class => css_class %>
  8. <% end %>
  9.    
  10. @tag_counts = Post.tag_counts_on(:tags).limit(10)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top