diff --git a/actionpack/README b/actionpack/README index 5d928dfa70f2d24819dcb86206d6a7c5ef5579c0..7c7526a9e981a8c9c08a67a637ec034df4d324cf 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 99b2fc1166a9e7d3558b1a762175f9d4e789ea4f..079ec736a1073966e15076543e1a868f127b7749 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