Skip to content

Commit a60e1a2

Browse files
API documentation reference added to view helper
1 parent 354e435 commit a60e1a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

guides/source/action_view_helpers.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,16 @@ This would add something like "Process data files (0.34523)" to the log, which y
188188

189189
#### cache
190190

191-
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.
191+
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.
192192

193193
```erb
194194
<% cache do %>
195195
<%= render "application/footer" %>
196196
<% end %>
197197
```
198198

199+
[`AbstractController::Caching::Fragments`]: https://api.rubyonrails.org/classes/AbstractController/Caching/Fragments.html
200+
199201
### CaptureHelper
200202

201203
#### capture

0 commit comments

Comments
 (0)