diff options
author | Santosh Wadghule <santosh.wadghule@gmail.com> | 2016-07-21 13:10:35 +0530 |
---|---|---|
committer | Santosh Wadghule <santosh.wadghule@gmail.com> | 2016-07-23 09:56:35 +0530 |
commit | 8ad6260538aa211a90834df18a74f59f63e67bca (patch) | |
tree | 893223de3cd55cc0e87842a95451984590ad9d5e /guides/source/caching_with_rails.md | |
parent | cf5bc0dd5359e61dcb93e719279c7198e68a0eb8 (diff) | |
download | rails-8ad6260538aa211a90834df18a74f59f63e67bca.tar.gz rails-8ad6260538aa211a90834df18a74f59f63e67bca.tar.bz2 rails-8ad6260538aa211a90834df18a74f59f63e67bca.zip |
Explain meaning of the code very well and Remove confusion. [ci skip]
Code like `render(topics) => render("topics/topic")` adds confusion
for the readers. On first impression, that code feels like hash kind
of data, but it's not. So make it more clear and meaningful.
Diffstat (limited to 'guides/source/caching_with_rails.md')
-rw-r--r-- | guides/source/caching_with_rails.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/caching_with_rails.md b/guides/source/caching_with_rails.md index 6c734c1d78..ad1f20e645 100644 --- a/guides/source/caching_with_rails.md +++ b/guides/source/caching_with_rails.md @@ -198,11 +198,11 @@ render "comments/comments" render 'comments/comments' render('comments/comments') -render "header" => render("comments/header") +render "header" translates to render("comments/header") -render(@topic) => render("topics/topic") -render(topics) => render("topics/topic") -render(message.topics) => render("topics/topic") +render(@topic) translates to render("topics/topic") +render(topics) translates to render("topics/topic") +render(message.topics) translates to render("topics/topic") ``` On the other hand, some calls need to be changed to make caching work properly. |