aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorwangjohn <wangjohn@mit.edu>2013-05-28 00:57:02 -0400
committerwangjohn <wangjohn@mit.edu>2013-06-13 10:09:15 -0400
commitfa0cff484a8f0c99480b7545fc77610009723147 (patch)
treeb8733a9a5e6524afb09a47debc14ba94bf2ad249 /actionpack/lib/action_view/helpers/url_helper.rb
parent3b7192d21e673002070c852453b3cc32622a7591 (diff)
downloadrails-fa0cff484a8f0c99480b7545fc77610009723147.tar.gz
rails-fa0cff484a8f0c99480b7545fc77610009723147.tar.bz2
rails-fa0cff484a8f0c99480b7545fc77610009723147.zip
Adding documentation to +polymorphic_url+
concerning the options that it inherits from +url_for+. The way that +polymorhpic_url+ is built allows it to have options like +:anchor+, +:script_name+, etc. but this is currently not documented.
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index 8a83f6f356..b4d6fe8a55 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -92,8 +92,9 @@ module ActionView
# ==== Data attributes
#
# * <tt>confirm: 'question?'</tt> - This will allow the unobtrusive JavaScript
- # driver to prompt with the question specified. If the user accepts, the link is
- # processed normally, otherwise no action is taken.
+ # driver to prompt with the question specified (in this case, the
+ # resulting text would be <tt>question?</tt>. If the user accepts, the
+ # link is processed normally, otherwise no action is taken.
# * <tt>:disable_with</tt> - Value of this parameter will be
# used as the value for a disabled version of the submit
# button when the form is submitted. This feature is provided