new action for intro page for new users

This commit is contained in:
r888888888
2013-06-17 13:15:52 -07:00
parent ec56d7abc9
commit 90e90e8be2
5 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
class IntroPresenter
def popular_tags
Tag.order("post_count desc").limit(8).map(&:name)
end
def each
popular_tags.each do |tag|
yield(tag, PostSets::Post.new(tag, 1, 6))
end
end
end