From 6ad1b895f4a7a113ad372ce485ac20c762cc3c2c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 22 Mar 2005 12:41:34 +0000 Subject: [PATCH] Updated more documentation git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/README | 9 +++++++++ .../lib/action_view/helpers/javascript_helper.rb | 3 +++ activerecord/CHANGELOG | 2 +- activesupport/CHANGELOG | 14 ++++++++++++++ railties/CHANGELOG | 4 +++- 5 files changed, 30 insertions(+), 2 deletions(-) diff --git a/actionpack/README b/actionpack/README index 5d928dfa70..7c7526a9e9 100755 --- a/actionpack/README +++ b/actionpack/README @@ -168,6 +168,15 @@ A short rundown of the major features: {Learn more}[link:classes/ActionController/Base.html] +* Javascript and Ajax integration. + + link_to_function "Greeting", "alert('Hello world!')" + link_to_remote "Delete this post", :update => "posts", + :url => { :action => "destroy", :id => post.id } + + {Learn more}[link:classes/ActionView/Helpers/JavascriptHelper.html] + + * Easy testing of both controller and template result through TestRequest/Response class LoginControllerTest < Test::Unit::TestCase diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index 99b2fc1166..079ec736a1 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -11,6 +11,9 @@ module Helpers # the Javascript support functions in a