method

cache_fragment

rails latest stable - Class: ActionView::TemplateHandlers::ERB

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

cache_fragment(block, name = {}, options = nil)
public

No documentation available.

# File actionpack/lib/action_view/template_handlers/erb.rb, line 49
      def cache_fragment(block, name = {}, options = nil) #:nodoc:
        @view.fragment_for(block, name, options) do
          eval(ActionView::Base.erb_variable, block.binding)
        end
      end