Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

only show 10 tags on front

  • Loading branch information...
commit be325915326a8c72fba48c14983ec00d784a7ec7 1 parent d5d532b
actsasflinn authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  app/controllers/application.rb
2  app/controllers/application.rb
@@ -16,7 +16,7 @@ class ApplicationController < ActionController::Base
16 16
   before_filter :stats
17 17
 
18 18
   def stats
19  
-    @top_tags = Tag.with_snippets.paginate(:page => 1, :order => 'taggings_count desc')
  19
+    @top_tags = Tag.with_snippets.paginate(:page => 1, :per_page => 10, :order => 'taggings_count desc')
20 20
     @top_languages = Language.with_snippets.paginate(:page => 1, :conditions => "snippets_count > 0", :order => 'snippets_count desc')
21 21
   end
22 22
 end

0 notes on commit be32591

Please sign in to comment.
Something went wrong with that request. Please try again.