1 2 3 4 5 6 7 8 9 10
module ActionView module Helpers # See ActionController::Caching::Fragments for usage instructions. module CacheHelper def cache(binding, name = {}) @controller.cache_erb_fragment(binding, name) { yield } end end end end