Permalink
Browse files

only show 10 tags on front

  • Loading branch information...
1 parent d5d532b commit be325915326a8c72fba48c14983ec00d784a7ec7 @actsasflinn committed Oct 13, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/application.rb
@@ -16,7 +16,7 @@ class ApplicationController < ActionController::Base
before_filter :stats
def stats
- @top_tags = Tag.with_snippets.paginate(:page => 1, :order => 'taggings_count desc')
+ @top_tags = Tag.with_snippets.paginate(:page => 1, :per_page => 10, :order => 'taggings_count desc')
@top_languages = Language.with_snippets.paginate(:page => 1, :conditions => "snippets_count > 0", :order => 'snippets_count desc')
end
end

0 comments on commit be32591

Please sign in to comment.