Skip to content

Commit f179539

Browse files
Merge pull request rails#51598 from seanpdoyle/action-view-cache-api-doc-syntax
Action View Caching code sample syntax [ci skip]
2 parents adf0c73 + 3137181 commit f179539

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

actionview/lib/action_view/helpers/cache_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ class UncacheableFragmentError < StandardError; end
7676
# render 'comments/comments'
7777
# render('comments/comments')
7878
#
79-
# render "header" translates to render("comments/header")
79+
# render "header" # translates to render("comments/header")
8080
#
81-
# render(@topic) translates to render("topics/topic")
82-
# render(topics) translates to render("topics/topic")
83-
# render(message.topics) translates to render("topics/topic")
81+
# render(@topic) # translates to render("topics/topic")
82+
# render(topics) # translates to render("topics/topic")
83+
# render(message.topics) # translates to render("topics/topic")
8484
#
8585
# It's not possible to derive all render calls like that, though.
8686
# Here are a few examples of things that can't be derived:

0 commit comments

Comments
 (0)