1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2026-08-16 05:54:53 +02:00
Files
cheatsheets/rails-features.md
Rico Sta. Cruz 0524caea00 Autolink.
2014-06-09 13:30:52 +08:00

371 B

title, layout
title layout
Rails features default

Page caching

class WeblogController < ActionController::Base
  caches_page :show, :new
end

This will generate cache files such as weblog/show/5.html and weblog/new.html, which match the URLs used that would normally trigger dynamic page generation