Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit c5588437d3651ce1a72b31a7a4858cd1660dc7df 1 parent a291ea2
Marcel Molina authored
View
2  actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Document :with option for link_to_remote. Closes #8765 [ryanb]
+
* Document :minute_step option for time_select. Closes #8814 [brupm]
* Explain how to use the :href option for link_to_remote to degrade gracefully in the absence of JavaScript. Closes #8911 [vlad]
View
8 actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -136,6 +136,14 @@ module PrototypeHelper
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.