method

cache_fragment

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

No documentation available.

# File actionpack/lib/action_view/template_handlers/rjs.rb, line 15
      def cache_fragment(block, name = {}, options = nil) #:nodoc:
        @view.fragment_for(block, name, options) do
          begin
            debug_mode, ActionView::Base.debug_rjs = ActionView::Base.debug_rjs, false
            eval('page.to_s', block.binding)
          ensure
            ActionView::Base.debug_rjs = debug_mode
          end
        end
      end