public Method

PrototypeHelper.update_page_tag(html_options = {}, &block)

Works like update_page but wraps the generated JavaScript in a <script> tag. Use this to include generated JavaScript in an ERb template. See JavaScriptGenerator for more information.

html_options may be a hash of <script> attributes to be passed to ActionView::Helpers::JavaScriptHelper#javascript_tag.</script>

Source Code

# File action_view/helpers/prototype_helper.rb, line 1001
def update_page_tag(html_options = {}, &block)
  javascript_tag update_page(&block), html_options
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.