comparison app/controllers/pastes_controller.rb @ 48:f649b46fca4f

Cache all the things! Or just the show page.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 03:05:43 +0700
parents 59ef6698fa0d
children c09020fc73f5
comparison
equal deleted inserted replaced
47:e9b485638f93 48:f649b46fca4f
1 class PastesController < ApplicationController 1 class PastesController < ApplicationController
2 caches_page :show
2 # GET /pastes/1 3 # GET /pastes/1
3 # GET /pastes/1.json 4 # GET /pastes/1.json
4 def show 5 def show
5 @paste = Paste.find(params[:id]) 6 @paste = Paste.find(params[:id])
6 7