public Method

RJS.cache_fragment(block, name = {}, options = nil)

There's no documentation for this item.

Source Code

# File 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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.