OSDN Git Service

Regular updates
[twpd/master.git] / rails-features.md
1 ---
2 title: Rails features
3 category: Rails
4 ---
5
6 ### [Page caching](https://github.com/rails/actionpack-page_caching)
7
8     class WeblogController < ActionController::Base
9       caches_page :show, :new
10     end
11
12 This will generate cache files such as `weblog/show/5.html` and 
13 `weblog/new.html`, which match the URLs used that would normally trigger dynamic 
14 page generation