Permalink
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 279 Bytes
class WelcomeController < ApplicationController
def index
@popular_topics = Topic.reorder('posts_count DESC').limit(4)
@top_posts = Post.reorder('comments_count DESC').limit(3)
@recent_comments = Comment.order('created_at DESC').limit(2)
end
def faq
end
end