Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.263 kb
class PageController < ApplicationController
caches_page :index
cache_sweeper :site_sweeper
def index
@categories = Category.all.sort
@articles = Article.find(:all, include: [:category, :tags])
@articles.sort_by(&:updated_at).reverse
end
end
Jump to Line
Something went wrong with that request. Please try again.