This helper to exposes a method for caching of view fragments. See ActionController::Caching::Fragments for usage instructions.
| Public Methods | |
|---|---|
| cache | A method for caching fragments of a view rather than an entire action or page. This technique is useful caching pieces like menus, lists of news topics, static HTML fragments, and so on. This method takes a block that contains the content you wish to cache. See ActionController::Caching::Fragments for more information. |
<code/>and<pre/>for code samples.