https://github.com/tylerrick/content_for_inside_cache_demo
This is a demo of how to use `content_for` within a fragment `cache` block.
https://github.com/tylerrick/content_for_inside_cache_demo
demo-app rails
Last synced: about 2 months ago
JSON representation
This is a demo of how to use `content_for` within a fragment `cache` block.
- Host: GitHub
- URL: https://github.com/tylerrick/content_for_inside_cache_demo
- Owner: TylerRick
- Created: 2020-06-10T18:40:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-08T19:19:28.000Z (over 3 years ago)
- Last Synced: 2025-01-12T22:28:32.069Z (over 1 year ago)
- Topics: demo-app, rails
- Language: Ruby
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
This is a demo of [this pull request](https://github.com/rails/rails/pull/39600),
which lets you use `content_for` within a fragment `cache` block.
To try it out, start server and go to http://localhost:3000/test/content_for_inside_cache
To view the earlier version of this demo that uses [this
patch](https://gist.github.com/TylerRick/1ab5e797892ebce5f9b2b1d143b9b1a4)
(monkey patching) instead of a Rails fork, check out the
[using_patch](https://github.com/TylerRick/content_for_inside_cache_demo/tree/using_patch)
branch.