Module: ActionView::Helpers::CacheHelper
- Defined in:
- lib/action_view/helpers/cache_helper.rb
Overview
See ActionController::Caching::Fragments for usage instructions.
Instance Method Summary collapse
Instance Method Details
#cache(name = {}, &block) ⇒ Object
5 6 7 |
# File 'lib/action_view/helpers/cache_helper.rb', line 5 def cache(name = {}, &block) @controller.cache_erb_fragment(block, name) end |