API documentation reference added to view helper

This commit is contained in:
Akhil G Krishnan 2023-11-05 09:23:30 +05:30
parent 354e435a65
commit a60e1a2380
1 changed files with 3 additions and 1 deletions

View File

@ -188,7 +188,7 @@ This would add something like "Process data files (0.34523)" to the log, which y
#### cache
A method for caching fragments of a view rather than an entire action or page. This technique is useful for 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 `AbstractController::Caching::Fragments` for more information.
A method for caching fragments of a view rather than an entire action or page. This technique is useful for 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 [`AbstractController::Caching::Fragments`][] for more information.
```erb
<% cache do %>
@ -196,6 +196,8 @@ A method for caching fragments of a view rather than an entire action or page. T
<% end %>
```
[`AbstractController::Caching::Fragments`]: https://api.rubyonrails.org/classes/AbstractController/Caching/Fragments.html
### CaptureHelper
#### capture