diff options
author | Marcel Molina <marcel@vernix.org> | 2007-11-06 23:23:37 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-11-06 23:23:37 +0000 |
commit | c5588437d3651ce1a72b31a7a4858cd1660dc7df (patch) | |
tree | 6cbcee6a01ca9b6cde021f3966d6600ad383e81d /actionpack/lib/action_view/helpers/prototype_helper.rb | |
parent | a291ea2bc9e8332855528e3300ed9259d0657b69 (diff) | |
download | rails-c5588437d3651ce1a72b31a7a4858cd1660dc7df.tar.gz rails-c5588437d3651ce1a72b31a7a4858cd1660dc7df.tar.bz2 rails-c5588437d3651ce1a72b31a7a4858cd1660dc7df.zip |
Document :with option for link_to_remote. Closes #8765 [ryanb]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/prototype_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index b7da182b35..4b502b0e5b 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -136,6 +136,14 @@ module ActionView # default this is the current form, but # it could just as well be the ID of a # table row or any other DOM element. + # <tt>:with</tt>:: A JavaScript expression specifying + # the parameters for the XMLHttpRequest. + # Any expressions should return a valid + # URL query string. + # + # Example: + # + # :with => "'name=' + $('name').value" # # You can generate a link that uses AJAX in the general case, while # degrading gracefully to plain link behavior in the absence of |