Flowdock
method

update_page

Importance_1
v2.1.0 - Show latest stable - 0 notes - Class: ActionView::Helpers::PrototypeHelper
update_page(&block) public

Yields a JavaScriptGenerator and returns the generated JavaScript code. Use this to update multiple elements on a page in an Ajax response. See <a href="/rails/ActionView/Helpers/PrototypeHelper/JavaScriptGenerator">JavaScriptGenerator</a> for more information.

Example:

  update_page do |page|
    page.hide 'spinner'
  end
Show source
Register or log in to add new notes.