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 --- .../lib/action_view/helpers/javascript_helper.rb | 30 +++++++++++++++++----- 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'actionpack/lib/action_view/helpers') 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