An open API service indexing awesome lists of open source software.

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.

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.