Rendering caching like traditional action caching but with the functionality of fragment caching.
Add this line to your application's Gemfile:
gem 'rendering_caching'And then execute:
$ bundle
class ListsController < ApplicationController
before_action :authenticate
caches_rendering :index, :show
end- Fork it.
- Create your feature branch (
git checkout -b my-new-feature). - Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin my-new-feature). - Create a new Pull Request.