Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

only show 10 tags on front

  • Loading branch information...
commit be325915326a8c72fba48c14983ec00d784a7ec7 1 parent d5d532b
@actsasflinn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/application.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.