From 09aae0a275b46b653e2386e35658d0455fd5763a Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Sat, 15 Oct 2005 05:08:59 +0000 Subject: Updated and clarified documentation for JavaScriptHelper to be more concise about the various options for including the JavaScript libs git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2608 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 2 ++ .../lib/action_view/helpers/javascript_helper.rb | 30 +++++++++++++++++----- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 8f95952e5b..b55cd48d41 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Updated and clarified documentation for JavaScriptHelper to be more concise about the various options for including the JavaScript libs. [Thomas Fuchs] + * Hide "Retry with Breakpoint" button on error pages until feature is functional. [DHH] * Fix Request#host_with_port to use the standard port when Rails is behind a proxy. [Nicholas Seckar] diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index 6fe90f970c..5637d7f5ce 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -7,10 +7,20 @@ module ActionView # actions in your controllers without reloading the page, but still update certain parts of it using injections into the # DOM. The common use case is having a form that adds a new element to a list without reloading the page. # - # To be able to use the JavaScript helpers, you must either call <%= define_javascript_functions %> (which returns all - # the JavaScript support functions in a