Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 191 Bytes
class PostController < ApplicationController
before_filter :set_top_posts
def index
@posts = Post.find(:all)
end
def set_top_posts
@top_posts = Post.find_top_posts
end
end