aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorArek W <arek01@gmail.com>2012-09-18 11:33:15 +1000
committerArek W <arek01@gmail.com>2012-09-18 11:33:15 +1000
commit137e5d91db0820e023dcb6b660e13279d650a856 (patch)
treec6136d87324023cf6fd7c355562c7e752b18e8cc /actionpack
parentedb40dc41241080aeb310e9e1295116cada8aefe (diff)
downloadrails-137e5d91db0820e023dcb6b660e13279d650a856.tar.gz
rails-137e5d91db0820e023dcb6b660e13279d650a856.tar.bz2
rails-137e5d91db0820e023dcb6b660e13279d650a856.zip
Add extra documentation for password_field
I think this should be explicit as the password fields behaviour is inconsistent with other fields in this regard. It had me scratching my head until I dug through the source code.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 17fe7dc1b4..cf5196fd38 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -785,7 +785,7 @@ module ActionView
# Returns an input tag of the "password" type tailored for accessing a specified attribute (identified by +method+) on an object
# assigned to the template (identified by +object+). Additional options on the input tag can be passed as a
# hash with +options+. These options will be tagged onto the HTML as an HTML element attribute as in the example
- # shown.
+ # shown. This field will be blank by default; pass in a value via +options+ if this is not desired.
#
# ==== Examples
# password_field(:login, :pass, :size => 20)